*** TEACHERS ***



use "$Endline_dtRaw/teachers/Version 8/Questionrio 2 - Professores.dta", clear

append using "$Endline_dtRaw/teachers/Version 10/professors.dta"

label drop _all

********************************************************************************
********************************************************************************

							* TEACHER SURVEY *

********************************************************************************
********************************************************************************

***********************



*delete teacher survey duplicates

drop if inlist(interview__key,"42-09-63-48","24-67-12-00","62-92-61-38",	///
	"50-66-63-03","55-62-70-90","73-08-87-02")

*errors identified by hand

replace resp_id = 16 if interview__key == "66-92-38-54"
replace resp_id = 12 if interview__key == "40-92-89-97"
replace resp_id = 7 if interview__key == "99-03-35-84"
replace resp_id = 23 if interview__key == "09-42-25-54"
replace resp_id = 32 if interview__key == "73-08-87-02"
replace resp_id = 12 if interview__key == "16-37-83-32"
replace resp_id = 13 if interview__key == "49-44-44-87"
replace resp_id = 2 if interview__key == "21-88-57-49"
replace resp_id = 46 if interview__key == "76-61-05-86"
replace resp_id = 4 if interview__key == "36-43-31-79"
replace resp_id = 11 if interview__key == "45-08-61-63"
replace resp_id = 27 if interview__key == "35-76-47-41"
replace resp_id = 15 if interview__key == "68-43-70-29"
replace resp_id = 17 if interview__key == "06-75-83-61"
replace resp_id = 27 if interview__key == "43-92-51-60"
replace resp_id = 4 if interview__key == "22-47-90-22"
replace resp_id = 6 if interview__key == "36-38-36-15"
replace resp_id = 8 if interview__key == "72-67-99-24"
replace resp_id = 12 if interview__key == "31-98-35-34"
replace resp_id = 13 if interview__key == "18-25-66-50"
replace resp_id = 77 if interview__key == "73-44-37-57"
replace resp_id = 13 if interview__key == "51-12-41-65"
replace resp_id = 24 if interview__key == "74-51-01-71"
replace resp_id = 3 if interview__key == "50-37-80-59"
replace resp_id = 1 if interview__key == "26-92-44-17"
replace resp_id = 7 if interview__key == "54-12-50-37"
replace resp_id = 5 if interview__key == "41-23-21-03"
replace resp_id = 5 if interview__key == "95-19-27-56"
replace resp_id = 32 if interview__key == "87-16-42-49"
replace resp_id = 2 if interview__key == "77-56-48-32"
replace resp_id = 16 if interview__key == "48-16-51-55"
replace resp_id = 3 if interview__key == "72-76-64-36"
replace resp_id = 1 if interview__key == "07-81-49-27"
replace resp_id = 43 if interview__key == "26-43-22-43"
replace resp_id = 13 if interview__key == "89-52-69-12"
replace resp_id = 24 if interview__key == "54-29-23-64"
replace resp_id = 2 if interview__key == "98-27-13-80"
replace resp_id = 5 if interview__key == "49-06-79-03"
replace resp_id = 8 if interview__key == "50-97-40-21"
replace resp_id = 13 if interview__key == "17-74-93-48"
replace resp_id = 31 if interview__key == "22-20-12-91"
replace resp_id = 34 if interview__key == "18-11-28-73"
replace resp_id = 37 if interview__key == "00-52-72-86"
replace resp_id = 7 if interview__key == "35-50-49-29"
replace resp_id = 4 if interview__key == "54-84-96-70"
replace resp_id = 7 if interview__key == "35-80-06-02"
replace resp_id = 2 if interview__key == "26-25-72-91"
replace resp_id = 4 if interview__key == "14-29-68-43"
replace resp_id = 8 if interview__key == "83-87-26-25"



replace school_id = 30 if interview__key == "16-49-02-83"
replace school_id = 30 if interview__key == "26-25-72-91"
replace school_id = 30 if interview__key == "00-17-33-16"
replace school_id = 46 if interview__key == "59-37-38-75"
replace school_id = 46 if interview__key == "69-17-14-42"
replace school_id = 48 if interview__key == "62-64-32-32"
replace school_id = 82 if interview__key == "59-25-76-35"
replace school_id = 84 if interview__key == "54-50-76-70"
replace school_id = 84 if interview__key == "23-34-11-24"
replace school_id = 99 if interview__key == "90-29-46-04"
replace school_id = 106 if interview__key == "88-38-43-70"
replace school_id = 119 if interview__key == "12-76-09-49"

replace resp_name = "Maria Adelaide A. Fortuna" if interview__key == "07-07-99-53"

replace supervisor = 5 if interview__key == "10-00-82-91"
replace supervisor = 5 if interview__key == "20-66-63-25"

********************************************************************************

// Identification variables for matching

gen survey_type = 2

gen teacher_id2 = 100*school_id + resp_id

********************************************************************************

// Identification for directors that did both the director and teacher survey

gen director_survey = 0
replace director_survey = 1 if inlist(interview__key,"31-60-89-10",			///
	"48-90-93-55","43-66-35-05","25-56-03-16","58-84-62-66","60-55-66-68")
replace director_survey = 1 if inlist(interview__key,"83-83-54-67",			///
	"62-83-79-51","27-66-34-95","12-52-47-04","00-24-72-16","94-80-13-11")

lab var director_survey "Also director survey conducted"

********************************************************************************

// Survey solutions variables

order interview__key interview__id sssys_irnd has__errors

drop interview__status

label variable interview__id "Unique 32-character long identifier"
label variable interview__key "Interview key (XX-XX-XX-XX format)"
label variable sssys_irnd "Random number range 0..1 associated with interview"
label variable has__errors "Errors count in the interview"

rename interview__id 	ss_id
rename interview__key 	ss_key
rename sssys_irnd 		ss_random
rename has__errors 		ss_errors

********************************************************************************

// add municipality and treatment variable to data set

gen municipality = .

replace municipality = 1 if inlist(school_id,1,2,3,4,5,6,7,8,9,10,12,13,	///
	14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,37,		///
	40,45,61,86,110)

replace municipality = 2 if inlist(school_id,23,43,44,46,47,48,49,50,51,	///
	52,53,54,55,56,57,58,59,60,62,63,64,65,66,67,68,69,70,71,72,73,75,76,	///
	77,78,79,80,81)

replace municipality = 3 if inlist(school_id,11,36,38,39,41,42,74,82,83,84,	///
	85,87,88,89,90,91,92,93,94,95,96,97,98,99,101,102,103,104,105)

replace municipality = 4 if inlist(school_id,118,119,120,121,122,123,124,125)
replace municipality = 5 if inlist(school_id,100,112,113,114,115,116,117)
replace municipality = 6 if inlist(school_id,109,111)
replace municipality = 7 if inlist(school_id,106,107)
replace municipality = 8 if inlist(school_id,126)
replace municipality = 9 if inlist(school_id,108)

gen treatment = .

replace treatment = 0 if inlist(school_id,3,4,7,10,16,18,20,23,26,29,33, ///
	39,42,53,55,62,63,64,65,78,81,84,87,88,89,92,98,108,109,116,117,121)

replace treatment = 1 if inlist(school_id,15,19,22,27,32,36,37,40,49,51, ///
	56,57,58,61,66,68,72,76,79,82,83,86,91,95,100,102,103,106,110,114,125,126)

replace treatment = 2 if inlist(school_id,1,5,6,11,12,14,21,24,25,31,41, ///
	48,50,52,59,70,73,77,80,90,93,94,101,105,107,111,112,113,119,120,124)

replace treatment = 3 if inlist(school_id,2,8,9,13,17,28,30,34,35,38,43, ///
	44,45,46,47,54,60,67,69,71,74,75,85,96,97,99,104,115,118,122,123)

********************************************************************************

order 	teacher_id2 survey_type director_survey school_id resp_id 			///
		municipality treatment supervisor interviewer date_time_start 		///
		date_time_end, after(ss_errors)

********************************************************************************

// labelssss

#delimit ;
;
label define treatment
0	"Control group"
1	"Door-to-door"
2	"Meetings"
3	"Both treatments"
;
label define municipality
1	"Sumbe"
2	"Porto Amboim"
3	"Gabela"
4	"Conda"
5	"Ebo"
6	"Quilenda"
7	"Seles"
8	"Cassongue"
9	"Quibala"
;
label define enum
1	"Antonio Lopes Miguel Rocha"
2	"Augusta Júlio Miranda"
3	"César Zau Joaquim Morais Mendes"
4	"Edesdeth Abrantes Fonseca"
5	"Fernando Portugal Leonardo"
6	"Filipe Quissana Cariengue"
7	"Herlander Mauro Lemos Lima"
8	"Manuel Aguinaldo Barroso Moreira Francisco"
9	"Albertina de Oliveira Armando"
10	"Augusto Viana Kupinga"
11	"Beatriz Laurinda Teixeira da Costa"
12	"Carlos da Fonseca Ricardo "
13	"Carolina Germano da Silva"
14	"Felizarda Luis Avelino"
15	"Hermínia Caetano Kalolo"
16	"Ilídio Duarte Reis Cardoso"
17	"Isabel Marcolino Lisboa"
18	"João Monteiro Bimbe"
19	"José Alberto Nungulo Kamucunja"
20	"Manuel Pinheiro Inacio Ernesto"
21	"Marimilia Francisco Fernando"
22	"José Bambi Kandjeke"
23	"Samora Paulo José Ganga"
24	"Victória Maneco Tavares"
25	"Adelaide Fernando Miguens"
26	"Adelaide Marcelina da Cruz Zeferino"
27	"Adilson Fragoso Pascoal Inácio Filipe"
28	"Amaro Alberto Chipa"
29	"Ana Paula Silvestre Ventura"
30	"Antonio Calei Pedro da Silva"
31	"António Manuel da Silva"
32	"Bernardo Miguêns Gimbo"
33	"Bernardo Sungo Manuel Zau"
34	"Bráulio Eanes Gabriel Alberto"
35	"Bruno José Fernando Viegas"
36	"Carvalinho António Correia"
37	"Cirineu Jr. Jorge"
38	"Domingos Guimarães Sumano"
39	"Elvino António Sobral Salomão"
40	"Etelvina Albertina Francisco Teixeira"
41	"Helder Silvestre Lino Tomé Pinto"
42	"Joana Pinto Soma"
43	"Jonas Frederico Albino Rangel"
44	"José Catraio António"
45	"José Luciano Januário"
46	"José Maria Sumano Delgado"
47	"José Pinto Fançony"
48	"Magalhães Salissinga Gomes"
49	"Maria de Fátima Paulo Feliciano"
50	"Mariza Fernando Manuel Vales"
51	"Monteiro Bastos"
52	"Nilton Januário Valentim"
53	"Sara Claúdio Vidro Aguiar Maneco"
54	"Telma da Conceição Mweleyavo António"
55	"Teresa Aguiar da Costa"
56	"Teresa Kizua Kassucada"
57	"Bruno Avelino Segunda"
58	"Inocêncio Mário Cupenala"
59	"Sabino Jorge Bira"
;
label define dummy
0	"No"
1 	"Yes"
;
label define survey_type
1	"Parent"
2	"Teacher"
3	"Director"
;
label define female
0 `"Male"'
1 `"Female"'
;
label define edu
0 `"No education"'
1 `"First grade"'
2 `"Primary school 1 (grades 1-4)"'
3 `"Primary school 2 (grades 5-6)"'
4 `"Secondary school 1 (grades 7-8) terceiro nivel"'
5 `"Secondary school 2 (grades 9-12) - ensino medio"'
6 `"Technical and Vocational Education (2-4 years)"'
7 `"Goes to university"'
8 `"Bacharel - Angola"'
9 `"Bachelor - Angola"'
10 `"Master - Angola"'
11 `"University - abroad"'
;
label define ocu
1 `"Part-time job in private sector"'
2 `"Part-time job in public sector"'
3 `"Full-time job in private sector"'
4 `"Full-time job in public sector"'
5 `"Self-employed"'
6 `"Business owner, employs other people"'
7 `"Farmer works with the family"'
8 `"Farmer, employs other people"'
9 `"Fisherman"'
10 `"Religious work"'
11 `"Retired"'
12 `"Student"'
13 `"Housewife"'
14 `"Unemployed"'
15 "Local leader or elected official"
16 "Shepherd"
17 "Voluntary teacher"
;
label define residence_loc
1 `"School neighborhood"'
2 `"Other neighborbood in school municipality"'
3 `"Outside of the school municipality"'
;
label define marital
1 `"Maried"'
2 `"Live together"'
3 `"Single"'
4 `"Widow"'
5 `"Divorced"'
;
label define residence_own
1 `"Property"'
2 `"Rented"'
3 `"Made available by family"'
4 `"Made available by community"'
5 `"Made available by state"'
6 `"Lives with parents"'
;
label define income
1 `"Less than 5 000 AKZ/month"'
2 `"5 001 - 10 000 AKZ/month"'
3 `"10 001 - 25 000 AKZ/month"'
4 `"25 001 - 50 000 AKZ/month"'
5 `"50 001 - 100 000 AKZ/month"'
6 `"100 001 - 150 000 AKZ/month"'
7 `"150 001 - 200 000 AKZ/month"'
8 `"More than 200 001 AKZ/month"'
;
label define language
1 `"Portugues"'
2 `"Umbundu"'
3 `"Kimbundu"'
4 `"Kicongo"'
5 `"Ngoia"'
6 "Ngangula"
7 "Hele"
;
label define transportation
1 `"By foot"'
2 `"Hitchhike"'
3 `"Bicycle"'
4 `"Minivan taxi"'
5 `"Bike taxi"'
6 `"Own bike"'
7 `"Own car"'
8 `"Rented bike"'
;
label define distance_home
1 `"Less than 500 meters"'
2 `"501 meters - 1 km"'
3 `"1 - 5 km"'
4 `"6 - 10 km"'
5 `"10 - 20 km"'
6 `"More than 20 km"'
;
#delimit cr

********************************************************************************

drop consensus

label values supervisor interviewer enum
label values municipality municipality
label values treatment treatment
label values survey_type survey_type

label variable date_time_start `"Date and time start interview"'
label variable date_time_end `"Date and time end interview"'
label variable school_id `"ID number school"'
label variable municipality "Municipality"
label variable treatment "Treatment group"
label variable resp_id `"ID number respondent"'
label variable supervisor `"Supervisor"'
label variable interviewer `"Interviewer"'
label variable resp_name `"Name respondent"'
label variable resp_tel `"Phone number respondent"'
label variable teacher_id2 `"Identification for merge with games"'
label variable survey_type `"Survey type"'
label variable resp_grade__0 `"Teacher of pre-school classes"'
label variable resp_grade__1 `"Teacher of grade 1 classes"'
label variable resp_grade__2 `"Teacher of grade 2 classes"'
label variable resp_grade__3 `"Teacher of grade 3 classes"'
label variable resp_grade__4 `"Teacher of grade 4 classes"'
label variable resp_grade__5 `"Teacher of grade 5 classes"'
label variable resp_grade__6 `"Teacher of grade 6 classes"'
label variable resp_grade__7 `"Teacher of grade 7 classes"'
label variable resp_grade__8 `"Teacher of grade 8 classes"'
label variable resp_grade__9 `"Teacher of grade 9 classes"'
label variable resp_grade__11 `"Teacher of module 1 classes (grades 1 and 2)"'
label variable resp_grade__22 `"Teacher of module 2 classes (grades 3 and 4)"'
label variable resp_grade__33 `"Teacher of module 3 classes (grades 5 and 6)"'

replace resp_tel = . if resp_tel==999

foreach var in resp_grade__0 resp_grade__1 resp_grade__2 resp_grade__3 		///
	resp_grade__4 resp_grade__5 resp_grade__6 resp_grade__7 resp_grade__8 	///
	resp_grade__9 resp_grade__11 resp_grade__22 resp_grade__33{
replace `var' = . if `var'==-999999999
}

foreach var in date_time_start date_time_end{
replace `var' = "" if `var'=="##N/A##"
}

replace resp_name = "Yolanda Fernando Maneco" if resp_name=="8"

********************************************************************************


********************************************************************************

********************************************************************************

* Section 1

drop aor aorcap senhor aas ees aam estaestao vaivao mais outros turma1

label variable T01_01 `"Age respondent"'
label variable T01_02 `"Gender respondent"'
label variable T01_03 `"Current home neighbourhood relative to the school"'
label variable T01_03_other2 `"Other current home neighbourhood if in same municipality as school"'
label variable T01_03_other3 `"Current home municipality if not in same municipality as school"'
label variable T01_04 `"Birthplace relative to the school"'
label variable T01_04_other2 `"Other birthplace (neighbourhood) if in same municipality as school"'
label variable T01_04_other3 `"Birthplace (municipality) if not in same municipality as school"'
label variable T01_05 `"Years of living in current neighbourhood"'
label variable T01_06 `"Highest level of education enjoyed by respondent"'
label variable T01_08 `"Teaching is main profession"'
label variable T01_09 `"Occupation respondent"'
label variable T01_10 `"Marital status respondent"'
label variable T01_11 `"Highest level of education enjoyed by partner respondent"'
label variable T01_12 `"Occupation partner respondent"'
label variable T01_13 `"Type of home in terms of ownership"'
label variable T01_14 `"Monthly total home income"'
label variable T01_15 `"How many of your children live with you?"'
label variable T01_16 `"How many children live with you but are not your children?"'
label variable T01_17 `"How many of the children that live with you are girls?"'
label variable T01_18 `"How many of the children living in your home attend this elementary school"'
label variable T01_19__0 `"Has children in pre-school"'
label variable T01_19__1 `"Has children in grade 1"'
label variable T01_19__2 `"Has children in grade 2"'
label variable T01_19__3 `"Has children in grade 3"'
label variable T01_19__4 `"Has children in grade 4"'
label variable T01_19__5 `"Has children in grade 5"'
label variable T01_19__6 `"Has children in grade 6"'
label variable T01_19__7 `"Has children in grade 7"'
label variable T01_19__8 `"Has children in grade 8"'
label variable T01_19__9 `"Has children in grade 9"'
label variable T01_20 `"Language spoken at home"'
label variable T01_21 `"Method of transportation used by respondent between home and school"'
label variable T01_22 `"Time in minutes spend by respondent between home and school"'
label variable T01_23 `"Aproximate distance in km between home and school"'
label variable T01_07__1 `"Teacher studied education"'
label variable T01_07__2 `"Teacher studied pedagogia"'
label variable T01_07_other "[Specified] Teacher studied social or formal/applied science"

label values T01_02 female
label values T01_03 residence_loc
label values T01_04 residence_loc
label values T01_06 edu
label values T01_08 dummy
label values T01_09 ocu
label values T01_10 marital
label values T01_11 edu
label values T01_12 ocu
label values T01_13 residence_own
label values T01_14 income
label values T01_20 language
label values T01_21 transportation
label values T01_23 distance_home

foreach var in T01_05 T01_08 T01_10 T01_11 T01_12 T01_13 T01_14 T01_15 		///
	T01_16 T01_18 T01_19__0 T01_19__1 T01_19__2 T01_19__3 T01_19__4 		///
	T01_19__5 T01_19__6 T01_19__7 T01_19__8 T01_19__9 T01_20 T01_21 		///
	T01_22 T01_23{
replace `var' = . if inlist(`var',-999999999,999)
}

drop T01_07__3

gen T01_07__3 = 0 if T01_07__1!=.
gen T01_07__4 = 0 if T01_07__1!=.

label variable T01_07__3 `"Teacher studied a social science"'
label variable T01_07__4 `"Teacher studied a formal/applied science"'

order T01_07__3 T01_07__4, after(T01_07__2)

lab val T01_07__1 T01_07__2 T01_07__3 T01_07__4 dummy

replace T01_07__1 = 1 if T01_07_other=="F. P.P"
replace T01_07__1 = 1 if T01_07_other=="F.p.p"
replace T01_07__1 = 1 if T01_07_other=="F.P.P"
replace T01_07__1 = 1 if T01_07_other=="F.P.P"
replace T01_07__1 = 1 if T01_07_other=="F.P.P"
replace T01_07__1 = 1 if T01_07_other=="F.P.P"
replace T01_07__1 = 1 if T01_07_other=="Formação de professor para ensino primário"
replace T01_07__1 = 1 if T01_07_other=="Formação de Professor para o Ensino Primário"
replace T01_07__1 = 1 if T01_07_other=="FPP"
replace T01_07__1 = 1 if T01_07_other=="FPP"
replace T01_07__1 = 1 if T01_07_other=="fpp"
replace T01_07__1 = 1 if T01_07_other=="Magistério Primário"
replace T01_07__1 = 1 if T01_07_other=="Magistério primário"
replace T01_07__1 = 1 if T01_07_other=="Professor do Ensino Primário"
replace T01_07__3 = 1 if T01_07_other=="C.Humanas"
replace T01_07__3 = 1 if T01_07_other=="Ciencias humanas"
replace T01_07__3 = 1 if T01_07_other=="Ciencias Humanas"
replace T01_07__3 = 1 if T01_07_other=="Ciências Humanas"
replace T01_07__3 = 1 if T01_07_other=="Contabilidade e Gestao"
replace T01_07__3 = 1 if T01_07_other=="Contabilidade e Gestão"
replace T01_07__3 = 1 if T01_07_other=="Contabilidade e gestao"
replace T01_07__3 = 1 if T01_07_other=="contabilidade geral"
replace T01_07__3 = 1 if T01_07_other=="Curso de Contabilidade"
replace T01_07__3 = 1 if T01_07_other=="Curso de Geografia"
replace T01_07__3 = 1 if T01_07_other=="Direito"
replace T01_07__3 = 1 if T01_07_other=="Direto"
replace T01_07__3 = 1 if T01_07_other=="Geo/História"
replace T01_07__3 = 1 if T01_07_other=="Geografia"
replace T01_07__3 = 1 if T01_07_other=="geografia"
replace T01_07__3 = 1 if T01_07_other=="Geográfia"
replace T01_07__3 = 1 if T01_07_other=="Geografia e História"
replace T01_07__3 = 1 if T01_07_other=="geografia História"
replace T01_07__3 = 1 if T01_07_other=="Geografia História"
replace T01_07__3 = 1 if T01_07_other=="Geografia/História"
replace T01_07__3 = 1 if T01_07_other=="geográfica História"
replace T01_07__3 = 1 if T01_07_other=="Geográfica/História"
replace T01_07__3 = 1 if T01_07_other=="Geográfico"
replace T01_07__3 = 1 if T01_07_other=="Geologia e Minas"
replace T01_07__3 = 1 if T01_07_other=="Gestão Empresarial e Contabilidade"
replace T01_07__3 = 1 if T01_07_other=="Historia"
replace T01_07__3 = 1 if T01_07_other=="historia"
replace T01_07__3 = 1 if T01_07_other=="História"
replace T01_07__3 = 1 if T01_07_other=="história"
replace T01_07__3 = 1 if T01_07_other=="Juridica"
replace T01_07__3 = 1 if T01_07_other=="Língua Portuguesa"
replace T01_07__3 = 1 if T01_07_other=="Psicologia"
replace T01_07__3 = 1 if T01_07_other=="psicologia"
replace T01_07__3 = 1 if T01_07_other=="Psicologia de  Educação"
replace T01_07__3 = 1 if T01_07_other=="Psicologia de Educação"
replace T01_07__3 = 1 if T01_07_other=="Psicologia Educacional"
replace T01_07__3 = 1 if T01_07_other=="psicologia geral"
replace T01_07__3 = 1 if T01_07_other=="psicológico"
replace T01_07__4 = 1 if T01_07_other=="Agronimia"
replace T01_07__4 = 1 if T01_07_other=="Agronomia"
replace T01_07__4 = 1 if T01_07_other=="Biologia e quimica"
replace T01_07__4 = 1 if T01_07_other=="Biologia e Química"
replace T01_07__4 = 1 if T01_07_other=="Bioquímica"
replace T01_07__4 = 1 if T01_07_other=="Engenharia Informática"
replace T01_07__4 = 1 if T01_07_other=="Exotecnia"
replace T01_07__4 = 1 if T01_07_other=="Fisica e biologica"
replace T01_07__4 = 1 if T01_07_other=="Gestão Agraria"
replace T01_07__4 = 1 if T01_07_other=="Informatica"
replace T01_07__4 = 1 if T01_07_other=="Informática"
replace T01_07__4 = 1 if T01_07_other=="Isotecnia"
replace T01_07__4 = 1 if T01_07_other=="Izootecnia"
replace T01_07__4 = 1 if T01_07_other=="Izotecnia"
replace T01_07__4 = 1 if T01_07_other=="matematica"
replace T01_07__4 = 1 if T01_07_other=="Matemática"
replace T01_07__4 = 1 if T01_07_other=="Matemática e Fisica"
replace T01_07__4 = 1 if T01_07_other=="Matemática/Física"
replace T01_07__4 = 1 if T01_07_other=="Zotcnina"

replace T01_09 = 2 if T01_09_other=="secretaria"
replace T01_09 = 2 if T01_09_other=="Chefe de secretaria da escola"
replace T01_09 = 5 if T01_09_other=="Carpinteiro"
replace T01_09 = 5 if T01_09_other=="Marceneiro"

drop T01_09_other

replace T01_12 = 4 if T01_12_other=="Ministerio do interior."
replace T01_12 = 4 if T01_12_other=="secretaria"
replace T01_12 = 4 if T01_12_other=="militar"
replace T01_12 = 5 if T01_12_other=="comerciante"
replace T01_12 = 5 if T01_12_other=="Comércio"
replace T01_12 = 5 if T01_12_other=="Conta Propria"
replace T01_12 = 5 if T01_12_other=="Conta Própria"
replace T01_12 = 5 if T01_12_other=="Electricista"
replace T01_12 = 5 if T01_12_other=="Motorista"
replace T01_12 = 5 if T01_12_other=="Negociante"
replace T01_12 = 13 if T01_12_other=="domestica"
replace T01_12 = 14 if T01_12_other=="Funcionario da saude mais sem salario."
replace T01_12 = 16 if T01_12_other=="Pastor"

drop T01_12_other

replace T01_13 = 1 if T01_13_other=="Herança"
replace T01_13 = 2 if T01_13_other=="Casa arrendada"

drop T01_13_other T01_20_other

replace T01_21 = . if T01_21==8
replace T01_21 = 2 if T01_21_other=="Boleia"
replace T01_21 = 3 if T01_21_other=="Apoio do irmão ( motorizada do irmão"
replace T01_21 = 3 if T01_21_other=="Mota do colega"
replace T01_21 = 4 if T01_21_other=="Taxi"
replace T01_21 = 8 if T01_21_other=="Motorizada Alugada"

drop T01_21_other

********************************************************************************

********************************************************************************

* Section 2 (director section 2)

// labelssss

#delimit ;
;
label define T02_01
1 `"Director"'
2 `"Deputy director"'
3 `"Senior teacher"'
4 `"Teacher"'
5 `"Intern teacher"'
;
label define T02_02
0 `"No"'
1 `"Yes, teacher"'
2 `"Yes, (head of) administration"'
3 `"Yes, coordinator (of grade, shift, other activities)"'
4 `"Yes, representative trade union"'
5	"Yes, responsible for teacher training"
;
label define T02_12
1 `"Director"'
2 `"Deputy director"'
3 `"School board"'
4 `"Provincial board"'
5 `"Municipal/comunal board"'
6 `"Ministry of education"'
7 `"Task force / evaluation committee"'
8 `"Inspection"'
9 `"Another (senior) teacher"'
;
label define T02_18
1 `"Teach at other public school"'
2 `"Teach at private school"'
3 `"Paid private classes"'
4 `"Business"'
5 `"Farming"'
6 `"Fishing"'
7 `"Other non-farming job"'
8 "Pension"
;
#delimit cr

foreach var in 	T02_01 T02_03 T02_05 T02_06 T02_07 T02_08 T02_09 T02_10 		///
				T02_12 T02_15 T02_17 T02_19{
replace `var' = . if inlist(`var',-999999999,999)
}

recode T02_01 (6=5)
label values T02_01 T02_01
label variable T02_01 `"Position at the school"'

label values T02_02 T02_02
label variable T02_02 `"Additional position at the school"'

replace T02_02 = . if T02_02==4
replace T02_02 = 0 if T02_02_other=="Professora diplomada do 8º escalão"
replace T02_02 = 2 if T02_02_other=="Chefe de secretaria"
replace T02_02 = 2 if T02_02_other=="Subdirector Pedagógico"
replace T02_02 = 2 if T02_02_other=="Subdirector Pedagógico"
replace T02_02 = 2 if T02_02_other=="Colabora na Secretaria"
replace T02_02 = 2 if T02_02_other=="Conselho administrativo"
replace T02_02 = 3 if T02_02_other=="chefe  de  turno"
replace T02_02 = 3 if T02_02_other=="Coordenador da 4 classe"
replace T02_02 = 3 if T02_02_other=="coordenador de classe, turno e representante do Sinprof"
replace T02_02 = 3 if T02_02_other=="coordenador de turma"
replace T02_02 = 3 if T02_02_other=="Coordenador de turno"
replace T02_02 = 3 if T02_02_other=="Coordenadora da 3 Classe"
replace T02_02 = 3 if T02_02_other=="Coordenadora da turma a que leciona"
replace T02_02 = 3 if T02_02_other=="coordenadora das 4a classes"
replace T02_02 = 3 if T02_02_other=="coordenadora de classe"
replace T02_02 = 3 if T02_02_other=="Coordenadora de classe"
replace T02_02 = 3 if T02_02_other=="coordenadora de classe"
replace T02_02 = 3 if T02_02_other=="cordenadora Modolo 3"
replace T02_02 = 3 if T02_02_other=="Sub chefe de turno"
replace T02_02 = 3 if T02_02_other=="Chefe das actividades  extracurriculares"
replace T02_02 = 3 if T02_02_other=="Chefe Das Actividades extras escolares"
replace T02_02 = 3 if T02_02_other=="Coordenador das act. extra escolares."
replace T02_02 = 3 if T02_02_other=="coordenador das actividades extra escolar"
replace T02_02 = 3 if T02_02_other=="Coordenador das Actividades extra escolar"
replace T02_02 = 3 if T02_02_other=="coordenador das actividades extracurricular"
replace T02_02 = 3 if T02_02_other=="Coordenador das actividades extras curricular"
replace T02_02 = 3 if T02_02_other=="Coordenadora das  actividades extra escolar"
replace T02_02 = 3 if T02_02_other=="membro da comissão das actividades extra curriculares"
replace T02_02 = 3 if T02_02_other=="Coordenador  do desporto"
replace T02_02 = 3 if T02_02_other=="Coordenador de Recriação Cultura e Desporto"
replace T02_02 = 3 if T02_02_other=="Coordenadora da comissão de pais e encarregados de educação"
replace T02_02 = 3 if T02_02_other=="responsável da área de limpeza"
replace T02_02 = 3 if T02_02_other=="Conselho pedagógica"
replace T02_02 = 3 if T02_02_other=="correspondente de direção"
replace T02_02 = 3 if T02_02_other=="Grupo de coordenação"
replace T02_02 = 3 if T02_02_other=="Membro de avaliação De Docentes"
replace T02_02 = 3 if T02_02_other=="Vice coordenador"
replace T02_02 = 4 if T02_02_other=="coordenador ZIP"
replace T02_02 = 4 if T02_02_other=="Representante do Sim prof"
replace T02_02 = 4 if T02_02_other=="representante do sim profe"
replace T02_02 = 4 if T02_02_other=="Representante do Simprof"
replace T02_02 = 4 if T02_02_other=="Representante do Sinprof"
replace T02_02 = 4 if T02_02_other=="Representante do Sinprof"
replace T02_02 = 4 if T02_02_other=="Representante do SINPROF na escola"
replace T02_02 = 4 if T02_02_other=="Secretaria do simprof"
replace T02_02 = 4 if T02_02_other=="sindicalista"
replace T02_02 = 5 if T02_02_other=="Formadora do Pat (Projecto de aprendizagem para todos)"
replace T02_02 = 5 if T02_02_other=="formadora projecto Pate"

replace T02_02 = 0 if T02_02==1 & inlist(T02_01,3,4,5)
replace T02_02 = 1 if T02_02==0 & inlist(T02_01,1,2)

drop T02_02_other

label values T02_03 dummy
label variable T02_03 `"Fixed contract"'

label variable T02_04__1 `"Professional development: Did training in management"'
label variable T02_04__2 `"Professional development: Did university course on education"'
label variable T02_04__3 `"Professional development: Visited other schools"'
label variable T02_04__4 `"Professional development: Received help from other directors"'
label variable T02_04__5 `"Professional development: Participated in a teachers network"'
label variable T02_04__6 `"Professional development: Participated in a workshop, conference or training"'

replace T02_04__6 = 1 if T02_04_other=="curso de Melhoramento de Caligrafia."
replace T02_04__6 = 1 if T02_04_other=="Curso educação fisica"
replace T02_04__6 = 1 if T02_04_other=="Aprendizagem para Todos"
replace T02_04__6 = 1 if T02_04_other=="Firmação de capacitação de professores"
replace T02_04__6 = 1 if T02_04_other=="Formação"
replace T02_04__6 = 1 if T02_04_other=="formação"
replace T02_04__6 = 1 if T02_04_other=="Formação de Alfabetização"
replace T02_04__6 = 1 if T02_04_other=="Formação de caligrafias"
replace T02_04__6 = 1 if T02_04_other=="Formação de capacitação do Módulo"
replace T02_04__6 = 1 if T02_04_other=="Formação de Ed.Fisica"
replace T02_04__6 = 1 if T02_04_other=="Formação de Ed.Física"
replace T02_04__6 = 1 if T02_04_other=="Formação de Educação física"
replace T02_04__6 = 1 if T02_04_other=="Formação de Educação física"
replace T02_04__6 = 1 if T02_04_other=="Formação de ensino de adulto"
replace T02_04__6 = 1 if T02_04_other=="Formação de Módolo"
replace T02_04__6 = 1 if T02_04_other=="Formação de Pedagogia em 2016"
replace T02_04__6 = 1 if T02_04_other=="Formação de Quadros técnicos da bolsa para melhoria da planificação quinzenal."
replace T02_04__6 = 1 if T02_04_other=="Formação do PAT"
replace T02_04__6 = 1 if T02_04_other=="Formação do PAT (Preparação de Aprendizagem para Todos)"
replace T02_04__6 = 1 if T02_04_other=="Formação não universitária"
replace T02_04__6 = 1 if T02_04_other=="Formação PAAE(programa de alfabetização e aceleração escolar"
replace T02_04__6 = 1 if T02_04_other=="Formação para professor"
replace T02_04__6 = 1 if T02_04_other=="Formadora do Projecto Pat"
replace T02_04__6 = 1 if T02_04_other=="PAEE"
replace T02_04__6 = 1 if T02_04_other=="Participação em programa PAT"
replace T02_04__6 = 1 if T02_04_other=="Participação num Seminário"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT"
replace T02_04__6 = 1 if T02_04_other=="PAT (programa de aprendizagem para todos)"
replace T02_04__6 = 1 if T02_04_other=="PAT (Projecto aprendizagem para todo)"
replace T02_04__6 = 1 if T02_04_other=="PAT (Projecto Aprendizagem para todos)"
replace T02_04__6 = 1 if T02_04_other=="PAT (Projecto Aprendizagem para todos)"
replace T02_04__6 = 1 if T02_04_other=="PAT(Projecto Aprendizagem para Todos ."
replace T02_04__6 = 1 if T02_04_other=="Programa Aprendizado para todos (PAT)"
replace T02_04__6 = 1 if T02_04_other=="Programa aprendizagem para todos"
replace T02_04__6 = 1 if T02_04_other=="Programa de aprendizado para todos (PAT)"
replace T02_04__6 = 1 if T02_04_other=="Projecto Aprendizagem para todos"
replace T02_04__6 = 1 if T02_04_other=="Projecto de aprendizado para todos (PAT)"
replace T02_04__6 = 1 if T02_04_other=="Projecto de Aprendizagem para todos ( PAT)"
replace T02_04__6 = 1 if T02_04_other=="Projecto meu Kamba e Mágica"
replace T02_04__6 = 1 if T02_04_other=="Projecto sim eu posso"
replace T02_04__6 = 1 if T02_04_other=="refrescamentos ou seminários de capacitação"
replace T02_04__6 = 1 if T02_04_other=="Refrescante pedagógico com outros professores da mesma área"
replace T02_04__6 = 1 if T02_04_other=="Seminário"
replace T02_04__6 = 1 if T02_04_other=="Seminário"
replace T02_04__6 = 1 if T02_04_other=="seminário"
replace T02_04__6 = 1 if T02_04_other=="Seminário"
replace T02_04__6 = 1 if T02_04_other=="Seminário  de capacitação para os coordenadores"
replace T02_04__6 = 1 if T02_04_other=="Seminário de  Capacitação..."
replace T02_04__6 = 1 if T02_04_other=="Seminário de Capacitação"
replace T02_04__6 = 1 if T02_04_other=="Seminário de Capacitação"
replace T02_04__6 = 1 if T02_04_other=="Seminário de capacitação de Professores"
replace T02_04__6 = 1 if T02_04_other=="seminário de expressão plástica,caligrafia e expressão"
replace T02_04__6 = 1 if T02_04_other=="Seminário de Formação do Módulo 3"
replace T02_04__6 = 1 if T02_04_other=="Seminário do Módulo"
replace T02_04__6 = 1 if T02_04_other=="Seminário do PAT"
replace T02_04__6 = 1 if T02_04_other=="Seminário Pedagógica"
replace T02_04__6 = 1 if T02_04_other=="Seminários"
replace T02_04__6 = 1 if T02_04_other=="seminários"
replace T02_04__6 = 1 if T02_04_other=="Seminários de capacitação"
replace T02_04__6 = 1 if T02_04_other=="seminários de capacitação"
replace T02_04__6 = 1 if T02_04_other=="seminários de capacitação"
replace T02_04__6 = 1 if T02_04_other=="Sociedade Aberta"
replace T02_04__6 = 1 if T02_04_other=="Teve formação de Língua gestual"
replace T02_04__6 = 1 if T02_04_other=="Curso de PALOP"
replace T02_04__6 = 1 if T02_04_other=="Projecto de A aprendizagem para todos"
replace T02_04__6 = 1 if T02_04_other=="Reciclagem de Educação Física"

drop T02_04__0 T02_04__7 T02_04__999 T02_04_other
lab val T02_04__1 T02_04__2 T02_04__3 T02_04__4 T02_04__5 T02_04__6 dummy

label variable T02_05 `"Year at the school"'
label values T02_06 dummy
label variable T02_06 `"Other school before this school"'
label variable T02_07 `"Year at the school"'
label variable T02_08 `"Monthly salary"'

replace T02_08 = T02_08/1000 if T02_08>1000000
replace T02_08 = T02_08/10 if T02_08==920000

label values T02_09 dummy
label variable T02_09 `"Possible bonus"'
label values T02_10 dummy
label variable T02_10 `"Received bonus last year"'


drop T02_11__9
gen T02_11__9 = 0 if T02_11__1!=.
gen T02_11__10 = 0 if T02_11__1!=.
gen T02_11__11 = 0 if T02_11__1!=.

order T02_11__9 T02_11__10 T02_11__11, after(T02_11__8)

label variable T02_11__1 `"Performance is measured by student results"'
label variable T02_11__2 `"Performance is measured by level of preparation (teaching plan)"'
label variable T02_11__3 `"Performance is measured by absentism teacher"'
label variable T02_11__4 `"Performance is measured by student results in standardized tests"'
label variable T02_11__5 `"Performance is measured by class observations"'
label variable T02_11__6 `"Performance is measured by absentism students"'
label variable T02_11__7 `"Performance is measured by satisfaction of parents"'
label variable T02_11__8 `"Performance is measured by evaluation of a senior teacher or director"'
label variable T02_11__9 `"Performance is measured by engagement in other activities"'
label variable T02_11__10 `"Performance is measured by behavior and interpersonal relations"'
label variable T02_11__11 `"Performance is measured by evaluation form / quality related"'

replace T02_11__1 = 1 if T02_11_other=="o desempenho dos alunos"
replace T02_11__2 = 1 if T02_11_other=="Acompanhar o plano de aulas."
replace T02_11__2 = 1 if T02_11_other=="Avaliação dos apontamentos"
replace T02_11__2 = 1 if T02_11_other=="Planificações quinzenais"
replace T02_11__2 = 1 if T02_11_other=="Plano de aula"
replace T02_11__2 = 1 if T02_11_other=="planos de aula, participação nas actividades"
replace T02_11__3 = 1 if T02_11_other=="as competências e asuidade no trabalho"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade"
replace T02_11__3 = 1 if T02_11_other=="pontualidade"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade do professor"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade do professor"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade do professor"
replace T02_11__3 = 1 if T02_11_other=="pontualidade, relação pública"
replace T02_11__3 = 1 if T02_11_other=="Pontulidade"
replace T02_11__3 = 1 if T02_11_other=="Responsabilidade,; Compromisso; Pontualidade.."
replace T02_11__3 = 1 if T02_11_other=="Pontualidade, Participação nas actividade da escolas"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade, Participação nas actividades da escola"
replace T02_11__3 = 1 if T02_11_other=="Pontualidade; Acompanhamento das actividades extracurriculares."
replace T02_11__3 = 1 if T02_11_other=="o modo como trabalha,não faltar muito"
replace T02_11__3 = 1 if T02_11_other=="o modo como trabalha,não faltar muito"
replace T02_11__3 = 1 if T02_11_other=="Relação interpessal, número de aula dado, criatividade"
replace T02_11__3 = 1 if T02_11_other=="Faltas"
replace T02_11__3 = 1 if T02_11_other=="Por faltas cometidas"
replace T02_11__5 = 1 if T02_11_other=="atraves da observacao de aulas por parte do subdirector."
replace T02_11__5 = 1 if T02_11_other=="visita do director em algumas aulas."
replace T02_11__9 = 1 if T02_11_other=="Pontualidade; Acompanhamento das actividades extracurriculares."
replace T02_11__9 = 1 if T02_11_other=="A participação nas actividades extra-Escolares"
replace T02_11__9 = 1 if T02_11_other=="Actividades extracurriculares"
replace T02_11__9 = 1 if T02_11_other=="Actividades Extracurriculares"
replace T02_11__9 = 1 if T02_11_other=="actividades extraescolar e criatividade"
replace T02_11__9 = 1 if T02_11_other=="Participação em actividades extra curriculares"
replace T02_11__9 = 1 if T02_11_other=="Participação nas actividades extra escolares"
replace T02_11__9 = 1 if T02_11_other=="Participação nas actividades extracurriculares"
replace T02_11__9 = 1 if T02_11_other=="participação nas actividades extraescolar"
replace T02_11__9 = 1 if T02_11_other=="qualidades profissionais e participação nas actividades extracurricular"
replace T02_11__9 = 1 if T02_11_other=="Desepenho dp professor e participação nas actividades extra escolares"
replace T02_11__9 = 1 if T02_11_other=="relação humana e activodade extracurricular"
replace T02_11__9 = 1 if T02_11_other=="relação humana e participação nas actividades extracurriculares"
replace T02_11__9 = 1 if T02_11_other=="qualidades profissionais e participação nas actividades extracurricular"
replace T02_11__9 = 1 if T02_11_other=="participação no conselho de direção e relação humana"
replace T02_11__9 = 1 if T02_11_other=="participação nas planificações be actividades de escola, comportamento"
replace T02_11__9 = 1 if T02_11_other=="qualidades, participação nas actividades"
replace T02_11__9 = 1 if T02_11_other=="relação humana, participar nas actividades"
replace T02_11__9 = 1 if T02_11_other=="Desepenho dp professor e participação nas actividades extra escolares"
replace T02_11__9 = 1 if T02_11_other=="relação humana e activodade extracurricular"
replace T02_11__9 = 1 if T02_11_other=="relação humana e participação nas actividades extracurriculares"
replace T02_11__9 = 1 if T02_11_other=="planos de aula, participação nas actividades"
replace T02_11__9 = 1 if T02_11_other=="Pontualidade, Participação nas actividade da escolas"
replace T02_11__9 = 1 if T02_11_other=="Pontualidade, Participação nas actividades da escola"
replace T02_11__9 = 1 if T02_11_other=="participação nas planificações be actividades de escola, comportamento"
replace T02_11__9 = 1 if T02_11_other=="qualidades, participação nas actividades"
replace T02_11__9 = 1 if T02_11_other=="relação humana, participar nas actividades"
replace T02_11__9 = 1 if T02_11_other=="actividades escolares como campanha de reuniões"
replace T02_11__9 = 1 if T02_11_other=="participação das reuniões e actividaded"
replace T02_11__9 = 1 if T02_11_other=="Participação nas actividades da Escola"
replace T02_11__9 = 1 if T02_11_other=="participação nas actividades e comportamento"
replace T02_11__9 = 1 if T02_11_other=="participação nas actividades, relação humana"
replace T02_11__9 = 1 if T02_11_other=="Participação nas planificações."
replace T02_11__10 = 1 if T02_11_other=="Boa relação entre colegas"
replace T02_11__10 = 1 if T02_11_other=="comportamento"
replace T02_11__10 = 1 if T02_11_other=="Comportamento"
replace T02_11__10 = 1 if T02_11_other=="comportamento"
replace T02_11__10 = 1 if T02_11_other=="comportamento"
replace T02_11__10 = 1 if T02_11_other=="comportamento"
replace T02_11__10 = 1 if T02_11_other=="comportamento do professor"
replace T02_11__10 = 1 if T02_11_other=="comportamento do professor com respeito aos colegas e alunos"
replace T02_11__10 = 1 if T02_11_other=="Comportamento e seu desempenho"
replace T02_11__10 = 1 if T02_11_other=="comportamentos, regras de convivência"
replace T02_11__10 = 1 if T02_11_other=="comprovante das suas funções"
replace T02_11__10 = 1 if T02_11_other=="cumprir com as regras ministerial"
replace T02_11__10 = 1 if T02_11_other=="Dedicação do professor."
replace T02_11__10 = 1 if T02_11_other=="desempenho e relação humana"
replace T02_11__10 = 1 if T02_11_other=="desempenho, relação humana, criatividade"
replace T02_11__10 = 1 if T02_11_other=="Higiene e relacionamento interpessoal"
replace T02_11__10 = 1 if T02_11_other=="perfil do professor e relação pública"
replace T02_11__10 = 1 if T02_11_other=="Relação com outros professores"
replace T02_11__10 = 1 if T02_11_other=="relação humana"
replace T02_11__10 = 1 if T02_11_other=="relação humana"
replace T02_11__10 = 1 if T02_11_other=="Relação humana"
replace T02_11__10 = 1 if T02_11_other=="relação humana"
replace T02_11__10 = 1 if T02_11_other=="relação humana"
replace T02_11__10 = 1 if T02_11_other=="relação humana"
replace T02_11__10 = 1 if T02_11_other=="Relação humana e impenho"
replace T02_11__10 = 1 if T02_11_other=="Relação humana entre colega e comunidade"
replace T02_11__10 = 1 if T02_11_other=="Relação humano"
replace T02_11__10 = 1 if T02_11_other=="Relação interpessoal"
replace T02_11__10 = 1 if T02_11_other=="relação interpessoal"
replace T02_11__10 = 1 if T02_11_other=="Relação pública"
replace T02_11__10 = 1 if T02_11_other=="ser e  estar, relação humana e responsabilidade"
replace T02_11__10 = 1 if T02_11_other=="Relação interpessal, número de aula dado, criatividade"
replace T02_11__11 = 1 if T02_11_other=="A partir das avaliações"
replace T02_11__11 = 1 if T02_11_other=="Através das avaliação mensal e anual"
replace T02_11__11 = 1 if T02_11_other=="através das avaliação mesas e anuais"
replace T02_11__11 = 1 if T02_11_other=="através de fichas de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Avaliação"
replace T02_11__11 = 1 if T02_11_other=="Avaliação"
replace T02_11__11 = 1 if T02_11_other=="avaliação do professor por trimestre"
replace T02_11__11 = 1 if T02_11_other=="Avaliação Mensal"
replace T02_11__11 = 1 if T02_11_other=="Avaliações"
replace T02_11__11 = 1 if T02_11_other=="Avaliações mensais"
replace T02_11__11 = 1 if T02_11_other=="Consoante as avaliacoes mensais."
replace T02_11__11 = 1 if T02_11_other=="Feito por uma ficha de inscrição por  mês e ao fechar do ano"
replace T02_11__11 = 1 if T02_11_other=="ficha avaliação"
replace T02_11__11 = 1 if T02_11_other=="Ficha de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Ficha de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Ficha de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Ficha de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Fichas de Avaliação"
replace T02_11__11 = 1 if T02_11_other=="Fixa de Avaliação"
replace T02_11__11 = 1 if T02_11_other=="Fixas de Avaliação"
replace T02_11__11 = 1 if T02_11_other=="Mediante as Fichas de Avaliação"
replace T02_11__11 = 1 if T02_11_other=="Pelas fichas de avaliacao."
replace T02_11__11 = 1 if T02_11_other=="Pelos relatórios"
replace T02_11__11 = 1 if T02_11_other=="Por ficha de avaliação"
replace T02_11__11 = 1 if T02_11_other=="por fichas de avaliação"
replace T02_11__11 = 1 if T02_11_other=="Por meio de uma avaliacao."
replace T02_11__11 = 1 if T02_11_other=="Por Uma Avaliação"
replace T02_11__11 = 1 if T02_11_other=="são avaliados mensalmente"
replace T02_11__11 = 1 if T02_11_other=="São medidas na avaliações anuais"
replace T02_11__11 = 1 if T02_11_other=="atraves de um nucleo criado pela direccao da escola."
replace T02_11__11 = 1 if T02_11_other=="Atraves do empenho laboral"
replace T02_11__11 = 1 if T02_11_other=="com base ao trabalho desempenhado"
replace T02_11__11 = 1 if T02_11_other=="Competências profissionais"
replace T02_11__11 = 1 if T02_11_other=="desempenho do professor e seu perfil"
replace T02_11__11 = 1 if T02_11_other=="Desempenho do seu trabalho"
replace T02_11__11 = 1 if T02_11_other=="Núcleo de apoio pedagógico (NAP)"
replace T02_11__11 = 1 if T02_11_other=="Observação do nível de empenho"
replace T02_11__11 = 1 if T02_11_other=="Pela avaliação docente"
replace T02_11__11 = 1 if T02_11_other=="qualidade de processo de ensino aprendizagem"
replace T02_11__11 = 1 if T02_11_other=="qualidade do professor"

drop T02_11__0 T02_11__999 T02_11_other

lab val T02_11__1 T02_11__2 T02_11__3 T02_11__4 T02_11__5 T02_11__6 		///
		T02_11__7 T02_11__8 T02_11__9 T02_11__10 T02_11__11 dummy

label values T02_12 T02_12
label variable T02_12 `"Responsible for evaluation"'

replace T02_12 = . if T02_12==8
replace T02_12 = 8 if T02_12==7

replace T02_12 = 2 if T02_12_other=="Diretor pedagógico"
replace T02_12 = 3 if T02_12_other=="Direção da escola em que esta e a coordenação da escola aonde esta se formando"
replace T02_12 = 3 if T02_12_other=="existe conselho de direção próprio através dos coordenadores e visitas feitos"
replace T02_12 = 5 if T02_12_other=="direcção comunal"
replace T02_12 = 5 if T02_12_other=="Director da zona"
replace T02_12 = 5 if T02_12_other=="Encarregados"
replace T02_12 = 7 if T02_12_other=="A Comissão da Escola"
replace T02_12 = 7 if T02_12_other=="A comissão de avaliação"
replace T02_12 = 7 if T02_12_other=="A comissão de professores formada para avaliação."
replace T02_12 = 7 if T02_12_other=="Comissão criada pela direção da escola"
replace T02_12 = 7 if T02_12_other=="Comissão da Zona Escolar"
replace T02_12 = 7 if T02_12_other=="comissão de avaliação"
replace T02_12 = 7 if T02_12_other=="Comissão de Avaliação"
replace T02_12 = 7 if T02_12_other=="comissão de avaliação construído pelo diretor e alguns coordenador"
replace T02_12 = 7 if T02_12_other=="Comissão de avaliação da escola"
replace T02_12 = 7 if T02_12_other=="Comissao de avaliacao dos docentes"
replace T02_12 = 7 if T02_12_other=="Comissao de avaliacao dos professores."
replace T02_12 = 7 if T02_12_other=="Comissão de avaliação eleita pela direção de escola, de ano pos ano"
replace T02_12 = 7 if T02_12_other=="comissão de escola"
replace T02_12 = 7 if T02_12_other=="conselho de direção (Director geral, pedagógico, coordenadores)"
replace T02_12 = 7 if T02_12_other=="Coordenador da Comissão"
replace T02_12 = 7 if T02_12_other=="Existe uma comissão própria coordenado pelo Director"
replace T02_12 = 7 if T02_12_other=="O colectivo de professores formado para esse efeito"
replace T02_12 = 7 if T02_12_other=="Uma comissão de avaliação composta na escola"
replace T02_12 = 9 if T02_12_other=="A coordenação de turnos e classes"
replace T02_12 = 9 if T02_12_other=="A coordenador a da classe"
replace T02_12 = 9 if T02_12_other=="Chefe de Turno"
replace T02_12 = 9 if T02_12_other=="coordenador"
replace T02_12 = 9 if T02_12_other=="Coordenador da classe"
replace T02_12 = 9 if T02_12_other=="Coordenador da Classe"
replace T02_12 = 9 if T02_12_other=="Coordenador de classe"
replace T02_12 = 9 if T02_12_other=="coordenador de classe"
replace T02_12 = 9 if T02_12_other=="Coordenador de classe"
replace T02_12 = 9 if T02_12_other=="Coordenador de zona"
replace T02_12 = 9 if T02_12_other=="Coordenador de zona"
replace T02_12 = 9 if T02_12_other=="Coordenador do Turno"
replace T02_12 = 9 if T02_12_other=="Coordenadora"
replace T02_12 = 9 if T02_12_other=="coordenadora"
replace T02_12 = 9 if T02_12_other=="Coordenadora"
replace T02_12 = 9 if T02_12_other=="Coordenadora da Classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora da Classe"
replace T02_12 = 9 if T02_12_other=="coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadora de classe"
replace T02_12 = 9 if T02_12_other=="coordenadoras de classe"
replace T02_12 = 9 if T02_12_other=="Coordenadores de escola"
replace T02_12 = 9 if T02_12_other=="Cordenador"
replace T02_12 = 9 if T02_12_other=="Cordenadora da 1 classe"
replace T02_12 = 9 if T02_12_other=="Representantes dos estagiários"
replace T02_12 = 9 if T02_12_other=="A professora"
replace T02_12 = 9 if T02_12_other=="E medido pela professora."
replace T02_12 = 9 if T02_12_other=="outro professor escolhido pelo colectivo"
replace T02_12 = 9 if T02_12_other=="Professor"
replace T02_12 = 9 if T02_12_other=="Professor"
replace T02_12 = 9 if T02_12_other=="Simprof"

drop T02_12_other

label variable T02_13__1 `"Result of good performance: Financial bonus"'
label variable T02_13__2 `"Result of good performance: Trophy"'
label variable T02_13__3 `"Result of good performance: Promotion"'
label variable T02_13__4 `"Result of good performance: Transfer to better school"'
label variable T02_13__5 `"Result of good performance: Written or oral notification"'

replace T02_13__2 = 1 if T02_13_other=="Caso a escola organizar uma actividade de entrega de medalhas e outros bens...."
replace T02_13__2 = 1 if T02_13_other=="Almoço de confraternização."
replace T02_13__2 = 1 if T02_13_other=="O professor e premiado no final do ano lectivo."
replace T02_13__3 = 1 if T02_13_other=="Crédito bancário, Nomeação definitiva"
replace T02_13__3 = 1 if T02_13_other=="facilita a mudança de categoria"
replace T02_13__3 = 1 if T02_13_other=="Facilita na ficha de promoção"
replace T02_13__3 = 1 if T02_13_other=="Facilita na fixa de avaliação caso haja promoção"
replace T02_13__3 = 1 if T02_13_other=="facilita na formação de processo caso houver promoção"
replace T02_13__3 = 1 if T02_13_other=="facilita na promoção de categoria"
replace T02_13__3 = 1 if T02_13_other=="Facilita na promoção e elogios"
replace T02_13__3 = 1 if T02_13_other=="Facilita na promoção e na facilidade de credito"
replace T02_13__3 = 1 if T02_13_other=="facilita na promoção e transferência"
replace T02_13__3 = 1 if T02_13_other=="Facilita na promoção, elogiou"
replace T02_13__3 = 1 if T02_13_other=="Favorece na promoção"
replace T02_13__3 = 1 if T02_13_other=="Favorece na promoção de categoria"
replace T02_13__3 = 1 if T02_13_other=="Mudança de classificação"
replace T02_13__3 = 1 if T02_13_other=="Na ficha de avaliação tem um Bom"
replace T02_13__3 = 1 if T02_13_other=="Passar a professor colaborador"
replace T02_13__3 = 1 if T02_13_other=="Passar a professor Colaborador remunerado"
replace T02_13__3 = 1 if T02_13_other=="Recebe um cargo"
replace T02_13__3 = 1 if T02_13_other=="Transição de classe."
replace T02_13__3 = 1 if T02_13_other=="facilita na transferência e nas possíveis ocupação de cargo de chefia"
replace T02_13__3 = 1 if T02_13_other=="leva-se na repartição para possível promoção e transferência"
replace T02_13__4 = 1 if T02_13_other=="facilita na transferência e nas possíveis ocupação de cargo de chefia"
replace T02_13__4 = 1 if T02_13_other=="leva-se na repartição para possível promoção e transferência"
replace T02_13__4 = 1 if T02_13_other=="facilita no transferência"
replace T02_13__5 = 1 if T02_13_other=="A avaliação é positiva"
replace T02_13__5 = 1 if T02_13_other=="A ficha de Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="aparece no quando de honra como bom professor do ano lectivo"
replace T02_13__5 = 1 if T02_13_other=="Apenas elogios."
replace T02_13__5 = 1 if T02_13_other=="aproveitamento Bom ou muito bom"
replace T02_13__5 = 1 if T02_13_other=="Atribuições nde nota bom"
replace T02_13__5 = 1 if T02_13_other=="Atribuida a nota bom"
replace T02_13__5 = 1 if T02_13_other=="atribuída a nota qualitativa  Bom"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Bom"
replace T02_13__5 = 1 if T02_13_other=="Avaliação é duma forma qualitativa aonde a direcção da escola aconselha o professor a não baixar de qualidade."
replace T02_13__5 = 1 if T02_13_other=="avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Avaliação positivo"
replace T02_13__5 = 1 if T02_13_other=="Bem avaliado"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa Classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa classificação"
replace T02_13__5 = 1 if T02_13_other=="boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa Classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Boa ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Boa nota na ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Bom"
replace T02_13__5 = 1 if T02_13_other=="bom na avaliação"
replace T02_13__5 = 1 if T02_13_other=="Certificado de mérito"
replace T02_13__5 = 1 if T02_13_other=="Certificado de mérito"
replace T02_13__5 = 1 if T02_13_other=="Certificado de mérito"
replace T02_13__5 = 1 if T02_13_other=="Certificado de Mérito"
replace T02_13__5 = 1 if T02_13_other=="classificacao  no final do ano lectivo."
replace T02_13__5 = 1 if T02_13_other=="Classificação Boa"
replace T02_13__5 = 1 if T02_13_other=="Classificação positiva"
replace T02_13__5 = 1 if T02_13_other=="Classificação positiva"
replace T02_13__5 = 1 if T02_13_other=="Classificação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Conta na ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Dão somente nota e elogios"
replace T02_13__5 = 1 if T02_13_other=="Dão um bom apenas...."
replace T02_13__5 = 1 if T02_13_other=="Dão uma avaliação Boa"
replace T02_13__5 = 1 if T02_13_other=="é atribuido nota"
replace T02_13__5 = 1 if T02_13_other=="E avaliada de forma posetiva."
replace T02_13__5 = 1 if T02_13_other=="e avaliada de posetivo atraves de uma ficha."
replace T02_13__5 = 1 if T02_13_other=="E avaliada posetivamente..."
replace T02_13__5 = 1 if T02_13_other=="É avaliado com um bom ou um sufic"
replace T02_13__5 = 1 if T02_13_other=="e avaliado com um bom volor pelos colegas."
replace T02_13__5 = 1 if T02_13_other=="Elogiado pelo Diretor e encarregados"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="Elogios"
replace T02_13__5 = 1 if T02_13_other=="elogios"
replace T02_13__5 = 1 if T02_13_other=="elogios e atribuição o de nota bom"
replace T02_13__5 = 1 if T02_13_other=="Elogios e facilitação na promoção"
replace T02_13__5 = 1 if T02_13_other=="Elogios por parte do director"
replace T02_13__5 = 1 if T02_13_other=="Elogios..."
replace T02_13__5 = 1 if T02_13_other=="Elogios..."
replace T02_13__5 = 1 if T02_13_other=="Envio Da Avaliação para Direcção Escolar do Magistério Primário"
replace T02_13__5 = 1 if T02_13_other=="ficha com bom"
replace T02_13__5 = 1 if T02_13_other=="Ficha de Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="ficha de avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Insentivo verbal"
replace T02_13__5 = 1 if T02_13_other=="lhe é atribuido a nota Bom"
replace T02_13__5 = 1 if T02_13_other=="nota bom"
replace T02_13__5 = 1 if T02_13_other=="nota positiva"
replace T02_13__5 = 1 if T02_13_other=="nota positiva"
replace T02_13__5 = 1 if T02_13_other=="Nota qialitativa bom"
replace T02_13__5 = 1 if T02_13_other=="nota Qualitativa bom"
replace T02_13__5 = 1 if T02_13_other=="nota qualitativa boom"
replace T02_13__5 = 1 if T02_13_other=="obtém uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Passa para o quadro de honra"
replace T02_13__5 = 1 if T02_13_other=="Quadro de honra"
replace T02_13__5 = 1 if T02_13_other=="Quadro de honra"
replace T02_13__5 = 1 if T02_13_other=="Recebe Avaliação Positiva"
replace T02_13__5 = 1 if T02_13_other=="Recebe Bom ma Ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe elogios"
replace T02_13__5 = 1 if T02_13_other=="Recebe Um Bom"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na Ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom Na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom Na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na Ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe Um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom Na ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de avaliação"
replace T02_13__5 = 1 if T02_13_other=="Recebe um Bom na ficha de Processo"
replace T02_13__5 = 1 if T02_13_other=="Recebe um diploma"
replace T02_13__5 = 1 if T02_13_other=="recebe um quadro de honra"
replace T02_13__5 = 1 if T02_13_other=="relatórios de avaliação da professora é levada na secção da direção municipal da educação."
replace T02_13__5 = 1 if T02_13_other=="Só uma nota que o resultado da avaliação"
replace T02_13__5 = 1 if T02_13_other=="Tem direito um bom na ficha de avaliação...."
replace T02_13__5 = 1 if T02_13_other=="tem uma classificação positiva"
replace T02_13__5 = 1 if T02_13_other=="Terá uma avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Um agradecimento por parte da direção e encarregados de educação"
replace T02_13__5 = 1 if T02_13_other=="um boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma avaliação positiva"
replace T02_13__5 = 1 if T02_13_other=="Uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa Avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa Avaliação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa Avaliação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma Boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa Classificação"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação final"
replace T02_13__5 = 1 if T02_13_other=="uma boa classificação na ficha da avaliação"
replace T02_13__5 = 1 if T02_13_other=="Uma boa pontuação no final de ano."

drop T02_13__0 T02_13__6 T02_13__999 T02_13_other

lab val T02_13__1 T02_13__2 T02_13__3 T02_13__4 T02_13__5 dummy

drop T02_14__5
gen T02_14__5 = 0 if T02_14__1!=.
gen T02_14__6 = 0 if T02_14__1!=.

order T02_14__5 T02_14__6, after(T02_14__4)

label variable T02_14__1 `"Result of bad performance: Financial sanction or lose benefits"'
label variable T02_14__2 `"Result of bad performance: Transfer"'
label variable T02_14__3 `"Result of bad performance: Dismissal"'
label variable T02_14__4 `"Result of bad performance: Written or oral notification"'
label variable T02_14__5 `"Result of bad performance: Demotion / difficulties for promotion"'
label variable T02_14__6 `"Result of bad performance: Mandatory training"'

lab val T02_14__1 T02_14__2 T02_14__3 T02_14__4 T02_14__5 T02_14__6 dummy

replace T02_14__1 = 1 if T02_14_other=="é privado de alguns direito (fazer credito, transferência)"
replace T02_14__1 = 1 if T02_14_other=="é sancionado"
replace T02_14__1 = 1 if T02_14_other=="Um sufsi na ficha de avaliação e com impedimento de ir para reforma caso tiver idade, não tem direito a credito..."
replace T02_14__1 = 1 if T02_14_other=="Mancha a conduta do professor e não há permissão de fazer o credito bancário"
replace T02_14__1 = 1 if T02_14_other=="Não à facilidade no crédito bancário"
replace T02_14__1 = 1 if T02_14_other=="Não pode fazer crédito bancário"
replace T02_14__1 = 1 if T02_14_other=="Não tem bónus"
replace T02_14__1 = 1 if T02_14_other=="Não tem direito a crédito"
replace T02_14__1 = 1 if T02_14_other=="Não tem direito a crédito bancário"
replace T02_14__1 = 1 if T02_14_other=="Pode ser desativado na folha de salário"
replace T02_14__1 = 1 if T02_14_other=="Vem um mau na fixa de avaliação e posterior dificuldade na promoção,crédito bancário e transferência"
replace T02_14__2 = 1 if T02_14_other=="Avaliação negativa e corre o risco de ser transferido pra uma área mais distante..."
replace T02_14__3 = 1 if T02_14_other=="Expulsa do Emprego"
replace T02_14__4 = 1 if T02_14_other=="A avaliação é de uma forma negativa e ai vem a direção de escola aconselhar o professor a moldar pra uma boa conduta e mudar pra ter uma boa classificação"
replace T02_14__4 = 1 if T02_14_other=="A avaliação é sufice"
replace T02_14__4 = 1 if T02_14_other=="A direção pedagógica procura saber o que se passa com o professor no sentido de superar ."
replace T02_14__4 = 1 if T02_14_other=="a direção provincial impede de algumas direitos ( promoção, transferência)"
replace T02_14__4 = 1 if T02_14_other=="a direcção conversa com a professora"
replace T02_14__4 = 1 if T02_14_other=="A direcção da escola, conversa com a professora"
replace T02_14__4 = 1 if T02_14_other=="A ficha de Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Aconselha o professor para melhorar...."
replace T02_14__4 = 1 if T02_14_other=="Acontecimentos a penas"
replace T02_14__4 = 1 if T02_14_other=="Acontecimentos e Criticas"
replace T02_14__4 = 1 if T02_14_other=="Acontecimentos pra mudar ou inverter o quadro."
replace T02_14__4 = 1 if T02_14_other=="Adivertencia verbal"
replace T02_14__4 = 1 if T02_14_other=="Advertência"
replace T02_14__4 = 1 if T02_14_other=="Advertência Interna"
replace T02_14__4 = 1 if T02_14_other=="Ajuda da direção"
replace T02_14__4 = 1 if T02_14_other=="Ameassado  e n é promovido"
replace T02_14__4 = 1 if T02_14_other=="aparece a classificação de insuficiência"
replace T02_14__4 = 1 if T02_14_other=="Apenas um aconselhamento por parte da direção no sentido de melhorar"
replace T02_14__4 = 1 if T02_14_other=="As pessoas de direito conversão com o professor pra mudar de comportamento..."
replace T02_14__4 = 1 if T02_14_other=="Atribuido a nota Sufsi"
replace T02_14__4 = 1 if T02_14_other=="Ausência de Ferias"
replace T02_14__4 = 1 if T02_14_other=="Avaliação baixa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação é Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação má"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negaiva"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Avaliação Negativa"
replace T02_14__4 = 1 if T02_14_other=="avaliação negativa no final do ano"
replace T02_14__4 = 1 if T02_14_other=="Avaliação sufixe ou mau"
replace T02_14__4 = 1 if T02_14_other=="Baixa o grau avaliativo."
replace T02_14__4 = 1 if T02_14_other=="censura e formação de refrescamento"
replace T02_14__4 = 1 if T02_14_other=="certificado de merito"
replace T02_14__4 = 1 if T02_14_other=="Ceveramente criticado"
replace T02_14__4 = 1 if T02_14_other=="Chamada de atenção"
replace T02_14__4 = 1 if T02_14_other=="chamada de atenção"
replace T02_14__4 = 1 if T02_14_other=="Chamada de atenção"
replace T02_14__4 = 1 if T02_14_other=="Chamada de atenção"
replace T02_14__4 = 1 if T02_14_other=="chamada de atenção oral ou escrita"
replace T02_14__4 = 1 if T02_14_other=="Chamada de atenção..."
replace T02_14__4 = 1 if T02_14_other=="Classificação negativa"
replace T02_14__4 = 1 if T02_14_other=="Classificação negativa"
replace T02_14__4 = 1 if T02_14_other=="Classificação negativa"
replace T02_14__4 = 1 if T02_14_other=="Classificação negativa"
replace T02_14__4 = 1 if T02_14_other=="Conselho por parte dos colegas..."
replace T02_14__4 = 1 if T02_14_other=="Conselhos pra melhorar"
replace T02_14__4 = 1 if T02_14_other=="Conta na ficha de avaliação e leva um mau"
replace T02_14__4 = 1 if T02_14_other=="Conversa com o funcionário no sentido de melhorar..."
replace T02_14__4 = 1 if T02_14_other=="Conversão com professor pra mudar."
replace T02_14__4 = 1 if T02_14_other=="Crítica e má avaliação"
replace T02_14__4 = 1 if T02_14_other=="critica negativa"
replace T02_14__4 = 1 if T02_14_other=="Crítica para melhorar"
replace T02_14__4 = 1 if T02_14_other=="Críticas"
replace T02_14__4 = 1 if T02_14_other=="dam uma divertencia"
replace T02_14__4 = 1 if T02_14_other=="Dão-lhe a classificação que é sufsi e alguns aconselhamento para melhorar"
replace T02_14__4 = 1 if T02_14_other=="Decepcionado pelo resultado"
replace T02_14__4 = 1 if T02_14_other=="é atribuido nota sufsi"
replace T02_14__4 = 1 if T02_14_other=="E avaliada com um mau ou sufice."
replace T02_14__4 = 1 if T02_14_other=="e avaliada de forma negativa."
replace T02_14__4 = 1 if T02_14_other=="é chamada atenção particularmente"
replace T02_14__4 = 1 if T02_14_other=="é chamado atenção"
replace T02_14__4 = 1 if T02_14_other=="É repreendida,aconselhada,etc"
replace T02_14__4 = 1 if T02_14_other=="Fazem um chamada de atenção pra professora mudar de comportamento"
replace T02_14__4 = 1 if T02_14_other=="Fica na avaliação e depois Ser corrigido"
replace T02_14__4 = 1 if T02_14_other=="ficha de avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Fslar com a repartição"
replace T02_14__4 = 1 if T02_14_other=="Lhe é atribuida a nota sufis"
replace T02_14__4 = 1 if T02_14_other=="Má avaliação"
replace T02_14__4 = 1 if T02_14_other=="Má avaliação"
replace T02_14__4 = 1 if T02_14_other=="Má avaliação"
replace T02_14__4 = 1 if T02_14_other=="Má avaliação"
replace T02_14__4 = 1 if T02_14_other=="ma classificação"
replace T02_14__4 = 1 if T02_14_other=="Má Classificação"
replace T02_14__4 = 1 if T02_14_other=="Má classificação"
replace T02_14__4 = 1 if T02_14_other=="Má Classificação"
replace T02_14__4 = 1 if T02_14_other=="Má classificação na avaliação"
replace T02_14__4 = 1 if T02_14_other=="Má ou sufixe avaliação"
replace T02_14__4 = 1 if T02_14_other=="mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="mal avaliação na ficha"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="Mal classificação"
replace T02_14__4 = 1 if T02_14_other=="Mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="Mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação"
replace T02_14__4 = 1 if T02_14_other=="mal classificação no final do ano"
replace T02_14__4 = 1 if T02_14_other=="Mal classificação se for durante 3 anos baixá de categoria"
replace T02_14__4 = 1 if T02_14_other=="mal desempenho"
replace T02_14__4 = 1 if T02_14_other=="Mas  incentivo de melhoria"
replace T02_14__4 = 1 if T02_14_other=="Mau"
replace T02_14__4 = 1 if T02_14_other=="Mau avaliado"
replace T02_14__4 = 1 if T02_14_other=="mau classificação"
replace T02_14__4 = 1 if T02_14_other=="Mau desenpenho na Ficha"
replace T02_14__4 = 1 if T02_14_other=="mau na avaliação"
replace T02_14__4 = 1 if T02_14_other=="Mau prestígio"
replace T02_14__4 = 1 if T02_14_other=="Mutila os alunos e tem mau na avaliação"
replace T02_14__4 = 1 if T02_14_other=="Nao e classificada como boa professora."
replace T02_14__4 = 1 if T02_14_other=="Nota baixa"
replace T02_14__4 = 1 if T02_14_other=="nota negativa"
replace T02_14__4 = 1 if T02_14_other=="Nota negativa na fixa de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Nota suf ao professor"
replace T02_14__4 = 1 if T02_14_other=="Nota Suficiente"
replace T02_14__4 = 1 if T02_14_other=="nota sufisi"
replace T02_14__4 = 1 if T02_14_other=="nota sufisi"
replace T02_14__4 = 1 if T02_14_other=="o direitor faz uma notificação oral ou seja chama atenção ao professor"
replace T02_14__4 = 1 if T02_14_other=="Punição dando uma classe que não queres"
replace T02_14__4 = 1 if T02_14_other=="Recebe a nota sufissi"
replace T02_14__4 = 1 if T02_14_other=="Recebe Avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Recebe Criticas por parte dos encarregados"
replace T02_14__4 = 1 if T02_14_other=="Recebe na ficha um suficiente"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Mau na Ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um mau na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um mau na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um mau na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um regular, um mau"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente"
replace T02_14__4 = 1 if T02_14_other=="Recebe Um suficiente"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente na ficha de Avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um Suficiente na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente ou Mau"
replace T02_14__4 = 1 if T02_14_other=="Recebe um suficiente ou mau na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="recebe um sufisi ou mediicre"
replace T02_14__4 = 1 if T02_14_other=="Recebi um sufixe"
replace T02_14__4 = 1 if T02_14_other=="Será mau avaliada"
replace T02_14__4 = 1 if T02_14_other=="So mal visto pela direção da escola"
replace T02_14__4 = 1 if T02_14_other=="Sufici"
replace T02_14__4 = 1 if T02_14_other=="Sufis"
replace T02_14__4 = 1 if T02_14_other=="Sufixe na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Sufsi"
replace T02_14__4 = 1 if T02_14_other=="Também uma nota negativa"
replace T02_14__4 = 1 if T02_14_other=="tera uma avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="Um conselho vindo da direção e dos colegas"
replace T02_14__4 = 1 if T02_14_other=="um mal desepenho"
replace T02_14__4 = 1 if T02_14_other=="Um sufsi"
replace T02_14__4 = 1 if T02_14_other=="Uma avaliação negativa"
replace T02_14__4 = 1 if T02_14_other=="uma correção"
replace T02_14__4 = 1 if T02_14_other=="uma mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="uma mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="uma mal Avaliação"
replace T02_14__4 = 1 if T02_14_other=="uma mal avaliação"
replace T02_14__4 = 1 if T02_14_other=="uma mal Avaliação"
replace T02_14__4 = 1 if T02_14_other=="uma mal classificação"
replace T02_14__4 = 1 if T02_14_other=="uma mal classificação"
replace T02_14__4 = 1 if T02_14_other=="uma mal classificação"
replace T02_14__4 = 1 if T02_14_other=="Vira uma nota negativa na ficha de avaliação"
replace T02_14__4 = 1 if T02_14_other=="Avaliação negativa e corre o risco de ser transferido pra uma área mais distante..."
replace T02_14__4 = 1 if T02_14_other=="Má avaliação, congelamento da posição (não é promovido)"
replace T02_14__4 = 1 if T02_14_other=="Um sufsi na ficha de avaliação e com impedimento de ir para reforma caso tiver idade, não tem direito a credito..."
replace T02_14__4 = 1 if T02_14_other=="Vem um mau na fixa de avaliação e posterior dificuldade na promoção,crédito bancário e transferência"
replace T02_14__4 = 1 if T02_14_other=="Desqualificado Na avaliação anual"
replace T02_14__5 = 1 if T02_14_other=="Baixa de categoria"
replace T02_14__5 = 1 if T02_14_other=="Baixa de categoria"
replace T02_14__5 = 1 if T02_14_other=="Baixa de escalão"
replace T02_14__5 = 1 if T02_14_other=="Baixar a classe a dar"
replace T02_14__5 = 1 if T02_14_other=="Desprovido"
replace T02_14__5 = 1 if T02_14_other=="Desqualificação da sua profissão"
replace T02_14__5 = 1 if T02_14_other=="Dificuldade de transferência"
replace T02_14__5 = 1 if T02_14_other=="Má avaliação, congelamento da posição (não é promovido)"
replace T02_14__5 = 1 if T02_14_other=="Encontra dificuldades na constituição do processo para transferência."
replace T02_14__5 = 1 if T02_14_other=="Falta de promoção"
replace T02_14__5 = 1 if T02_14_other=="Impede no processo de transferência"
replace T02_14__5 = 1 if T02_14_other=="Impedimento em ascender certos cargos"
replace T02_14__5 = 1 if T02_14_other=="Não é promovido"
replace T02_14__5 = 1 if T02_14_other=="Não és promovido para outro grau"
replace T02_14__5 = 1 if T02_14_other=="não facilitará na promoção"
replace T02_14__5 = 1 if T02_14_other=="Não Pode Ser Promovido"
replace T02_14__5 = 1 if T02_14_other=="Nao promo-lhe"
replace T02_14__5 = 1 if T02_14_other=="Pode peder a promoção de categoria"
replace T02_14__5 = 1 if T02_14_other=="Podem mudar-te de categoria ou mesmo dispromover-te"
replace T02_14__5 = 1 if T02_14_other=="Podem te transferir para uma outra escola"
replace T02_14__5 = 1 if T02_14_other=="se for negativo não transita para outra categoria, mas isto não se faz sentir"
replace T02_14__5 = 1 if T02_14_other=="Vem um mau na fixa de avaliação e posterior dificuldade na promoção,crédito bancário e transferência"
replace T02_14__6 = 1 if T02_14_other=="É enviado para um seminário de capacitação"
replace T02_14__6 = 1 if T02_14_other=="Formação"
replace T02_14__6 = 1 if T02_14_other=="Sanção (Seminário de Capacitação)"
replace T02_14__6 = 1 if T02_14_other=="São postos a participar em seminários de capacitação."
replace T02_14__5 = 1 if T02_14_other=="Como estagiária é uma reprovação que acontece"
replace T02_14__5 = 1 if T02_14_other=="Não transita de classe."
replace T02_14__5 = 1 if T02_14_other=="Reprovação"

drop T02_14__0 T02_14__999 T02_14_other

label values T02_15 dummy
label variable T02_15 `"Director has power to fire respondent"'

drop T02_16__4
gen T02_16__4 = 0 if T02_16__1!=.
order T02_16__4, after(T02_16__3)

label variable T02_16__1 `"Receives help from community/school: Yes, transportation"'
label variable T02_16__2 `"Receives help from community/school: Yes, food allowance"'
label variable T02_16__3 `"Receives help from community/school: Yes, place to sleep"'
label variable T02_16__4 `"Receives help from community/school: Yes, other: phone credit / school material"'

lab val T02_16__1 T02_16__2 T02_16__3 T02_16__4 dummy

replace T02_16__2 = 1 if T02_16_other=="Alimentação"
replace T02_16__2 = 1 if T02_16_other=="Bens alimentar"
replace T02_16__2 = 1 if T02_16_other=="Bens Materias"
replace T02_16__2 = 1 if T02_16_other=="caixa de loiça, produtos do cambpo"
replace T02_16__2 = 1 if T02_16_other=="Comida de Campo como feijão,  milho, etc."
replace T02_16__2 = 1 if T02_16_other=="Produto do campo"
replace T02_16__2 = 1 if T02_16_other=="Produtos do campo"
replace T02_16__2 = 1 if T02_16_other=="Em determinadas ocasiões sim, uma refeição, um quarto para dormir."
replace T02_16__3 = 1 if T02_16_other=="Em determinadas ocasiões sim, uma refeição, um quarto para dormir."
replace T02_16__4 = 1 if T02_16_other=="Material Escolar"
replace T02_16__4 = 1 if T02_16_other=="Saldo de  de telefone, de quando em vez"

drop T02_16__0 T02_16__999 T02_16_other

label values T02_17 dummy
label variable T02_17 `"Other income"'

label values T02_18 T02_18
label variable T02_18 `"Other income source"'

replace T02_18 = . if T02_18==8
replace T02_18 = 5 if T02_18_other=="Recebe mesada aos pais"
replace T02_18 = 5 if T02_18_other=="Pensão do ministério do interior e trabalhos regular no campo"
replace T02_18 = 7 if T02_18_other=="actividade de construção civil e pintura"
replace T02_18 = 7 if T02_18_other=="Actividades desportivas"
replace T02_18 = 7 if T02_18_other=="Alfaiate"
replace T02_18 = 7 if T02_18_other=="Alfaiate"
replace T02_18 = 7 if T02_18_other=="cabeleleiro"
replace T02_18 = 7 if T02_18_other=="Carpentária"
replace T02_18 = 7 if T02_18_other=="Carpintaria"
replace T02_18 = 7 if T02_18_other=="Carpinteiro"
replace T02_18 = 7 if T02_18_other=="Carpinteiro"
replace T02_18 = 7 if T02_18_other=="Criador de gado"
replace T02_18 = 7 if T02_18_other=="Elaboração de projectos e estudo de viabilidade"
replace T02_18 = 7 if T02_18_other=="Eletricista"
replace T02_18 = 7 if T02_18_other=="Entrega comida e faz cocktails"
replace T02_18 = 7 if T02_18_other=="Mecanica"
replace T02_18 = 7 if T02_18_other=="Moto táxi"
replace T02_18 = 7 if T02_18_other=="Na marcenaria"
replace T02_18 = 7 if T02_18_other=="Negócio próprio"
replace T02_18 = 7 if T02_18_other=="Negócios particular"
replace T02_18 = 7 if T02_18_other=="Pastelaria"
replace T02_18 = 7 if T02_18_other=="pecuária"
replace T02_18 = 7 if T02_18_other=="Pedreiro"
replace T02_18 = 7 if T02_18_other=="Pedreiro"
replace T02_18 = 7 if T02_18_other=="pedreiro"
replace T02_18 = 7 if T02_18_other=="prestação de serviços"
replace T02_18 = 7 if T02_18_other=="realizador de eventos culturais desportivos."
replace T02_18 = 7 if T02_18_other=="Salão de cabeleireiro"
replace T02_18 = 7 if T02_18_other=="sector privado"
replace T02_18 = 7 if T02_18_other=="serralheria"
replace T02_18 = 7 if T02_18_other=="Terapeuta tradicional"
replace T02_18 = 7 if T02_18_other=="Trabalha em conta propria"
replace T02_18 = 7 if T02_18_other=="Trabalha numa papelaria"
replace T02_18 = 7 if T02_18_other=="trabalhos por incomenda"
replace T02_18 = 7 if T02_18_other=="Uma indústria moageira"
replace T02_18 = 7 if T02_18_other=="Vendas de roupas"
replace T02_18 = 8 if T02_18_other=="Pensão do ministério do interior e trabalhos regular no campo"
replace T02_18 = 8 if T02_18_other=="Recebi um subsídio na Segurança social"

drop T02_18_other

label variable T02_19 `"Amount other income"'

********************************************************************************

********************************************************************************

* Section 3

// labelssss

#delimit ;
;
label define grade
0 `"Pre-school"'
1 `"Grade 1"'
2 `"Grade 2"'
3 `"Grade 3"'
4 `"Grade 4"'
5 `"Grade 5"'
6 `"Grade 6"'
7 `"Grade 7"'
8 `"Grade 8"'
9 `"Grade 9"'
11 `"Module 1 (grades 1 and 2)"'
22 `"Module 2 (grades 3 and 4)"'
33 `"Module 3 (grades 5 and 6)"'
;
label define turma
0 `"No letter"'
1 `"Turma A"'
2 `"Turma B"'
3 `"Turma C"'
4 `"Turma D"'
5 `"Turma E"'
6 `"Turma F"'
7 `"Turma G"'
8 `"Turma H"'
9 `"Turma I"'
10 `"Turma J"'
11 `"Turma K"'
12 `"Turma L"'
13 `"Turma M"'
14 `"Turma N"'
15 `"Turma O"'
16 `"Turma P"'
17 `"Turma Q"'
18 `"Turma R"'
19 `"Turma S"'
20 `"Turma T"'
;
label define shift
1 `"Morning"'
2 `"Afternoon"'
3 `"Night"'
;
label define freq1
0 `"Never"'
1 `"Once per week"'
2 `"Once per two weeks"'
3 `"Once per month"'
4 `"Once per two months"'
5 `"Once per trimester"'
6 `"Once per semester"'
7 `"Once per year"'
;
label define appointment
1 `"Directly appointed"'
2 `"Via elections"'
;
#delimit cr

foreach var in 	T03_01_01 T03_01_01_01	T03_01_02_01 T03_01_03_01 T03_02_01	///
				T03_03_01 T03_04_01 T03_05_01__1 T03_05_01__2 T03_05_01__3 	///
				T03_05_01__4 T03_05_01__5 T03_05_01__6 T03_05_01__7 		///
				T03_05_01__8 T03_05_01__9{
replace `var' = . if inlist(`var',-999999999,999)
}

replace T03_01_01 = 1 if ss_key=="06-11-11-68"

label variable T03_01_01 `"How many classes is the teacher teaching in pre-school"'
label values T03_01_01_01 grade
label variable T03_01_01_01 `"Grade of class"'
label values T03_01_02_01 turma
label variable T03_01_02_01 `"ID of class"'
label values T03_01_03_01 shift
label variable T03_01_03_01 `"Period/shift of class"'
label variable T03_02_01 `"How many students in the class"'
label variable T03_03_01 `"How many students were one day absent in the last two weeks"'
label variable T03_04_01 `"How many students were absent more than one day in the last two weeks"'

drop T03_05_01__10
gen T03_05_01__10 = 0 if T03_05_01__1!=.
gen T03_05_01__11 = 0 if T03_05_01__1!=.

label variable T03_05_01__1 `"Teacher teaches Portuguese language to this class"'
label variable T03_05_01__2 `"Teacher teaches mathematics to this class"'
label variable T03_05_01__3 `"Teacher teaches geology to this class"'
label variable T03_05_01__4 `"Teacher teaches history to this class"'
label variable T03_05_01__5 `"Teacher teaches natural science to this class"'
label variable T03_05_01__6 `"Teacher teaches manual work to this class"'
label variable T03_05_01__7 `"Teacher teaches music to this class"'
label variable T03_05_01__8 `"Teacher teaches gymnastics to this class"'
label variable T03_05_01__9 `"Teacher teaches environment studies to this class"'
label variable T03_05_01__10 `"Teacher teaches moral and civic education to this class"'
label variable T03_05_01__11 `"Teacher teaches English language to this class"'

lab val T03_05_01__1 T03_05_01__2 T03_05_01__3 T03_05_01__4 T03_05_01__5 	///
		T03_05_01__6 T03_05_01__7 T03_05_01__8 T03_05_01__9 T03_05_01__10 	///
		T03_05_01__11 dummy

replace T03_05_01__1 = 1 if T03_05_01_other=="Língua linguagem, matemática."
replace T03_05_01__1 = 1 if T03_05_01_other=="representação matematica e comunicação linguística"
replace T03_05_01__1 = 1 if T03_05_01_other=="língua linguagem arte e comunicação"
replace T03_05_01__1 = 1 if T03_05_01_other=="Lingua Linguagem comunicacao e arte..."
replace T03_05_01__1 = 1 if T03_05_01_other=="Linguagem comunicação e artes"
replace T03_05_01__1 = 1 if T03_05_01_other=="Comunicação linguística , meio físico"
replace T03_05_01__1 = 1 if T03_05_01_other=="comunicação linguística e leitura infatil. expressa motora"
replace T03_05_01__1 = 1 if T03_05_01_other=="Comunicação Linguística. Meio físico social."
replace T03_05_01__1 = 1 if T03_05_01_other=="Língua Linguagem, Ser Humano"
replace T03_05_01__1 = 1 if T03_05_01_other=="Evp, Emc"
replace T03_05_01__1 = 1 if T03_05_01_other=="Língua linguagem, ser humano e matemática."
replace T03_05_01__2 = 1 if T03_05_01_other=="Língua linguagem, matemática."
replace T03_05_01__2 = 1 if T03_05_01_other=="representação matematica e comunicação linguística"
replace T03_05_01__2 = 1 if T03_05_01_other=="Língua linguagem, ser humano e matemática."
replace T03_05_01__6 = 1 if T03_05_01_other=="língua linguagem arte e comunicação"
replace T03_05_01__6 = 1 if T03_05_01_other=="Lingua Linguagem comunicacao e arte..."
replace T03_05_01__6 = 1 if T03_05_01_other=="Linguagem comunicação e artes"
replace T03_05_01__6 = 1 if T03_05_01_other=="Educação Manual e Plástica"
replace T03_05_01__6 = 1 if T03_05_01_other=="Educação Manual e plástica"
replace T03_05_01__6 = 1 if T03_05_01_other=="Educação manual plástica"
replace T03_05_01__6 = 1 if T03_05_01_other=="meio social"
replace T03_05_01__6 = 1 if T03_05_01_other=="Meio social físico;"
replace T03_05_01__6 = 1 if T03_05_01_other=="Evp, Emc"
replace T03_05_01__6 = 1 if T03_05_01_other=="Meio fisico social, expressão Plástica"
replace T03_05_01__7 = 1 if T03_05_01_other=="educação musical"
replace T03_05_01__7 = 1 if T03_05_01_other=="Educação Musical"
replace T03_05_01__7 = 1 if T03_05_01_other=="educação musical"
replace T03_05_01__7 = 1 if T03_05_01_other=="educação musical"
replace T03_05_01__7 = 1 if T03_05_01_other=="EMC"
replace T03_05_01__8 = 1 if T03_05_01_other=="Comunicação linguística , meio físico"
replace T03_05_01__8 = 1 if T03_05_01_other=="comunicação linguística e leitura infatil. expressa motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="Espressao motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="Espressão mutora"
replace T03_05_01__8 = 1 if T03_05_01_other=="Expressão Motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="Expressão Motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="expressão motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="expressão motora"
replace T03_05_01__8 = 1 if T03_05_01_other=="Expressão Motora ,"
replace T03_05_01__8 = 1 if T03_05_01_other=="Expressão Motoras"
replace T03_05_01__8 = 1 if T03_05_01_other=="expressões motoras"
replace T03_05_01__8 = 1 if T03_05_01_other=="História/dramatização; Psico_ Motricidade; Expressão Motora."
replace T03_05_01__9 = 1 if T03_05_01_other=="Comunicação Linguística. Meio físico social."
replace T03_05_01__9 = 1 if T03_05_01_other=="Língua Linguagem, Ser Humano"
replace T03_05_01__9 = 1 if T03_05_01_other=="Ser Humano"
replace T03_05_01__9 = 1 if T03_05_01_other=="ser humano"
replace T03_05_01__9 = 1 if T03_05_01_other=="Ser Humano e a natureza"
replace T03_05_01__9 = 1 if T03_05_01_other=="Ser Humano e a Natureza"
replace T03_05_01__9 = 1 if T03_05_01_other=="Ser humano e natureza. Lingua linguagem comunicação e arte"
replace T03_05_01__9 = 1 if T03_05_01_other=="Trabalha-se por interdisciplinalidade"
replace T03_05_01__9 = 1 if T03_05_01_other=="Meio fisico social, expressão Plástica"
replace T03_05_01__9 = 1 if T03_05_01_other=="Ser Hunano e Natureza"
replace T03_05_01__9 = 1 if T03_05_01_other=="Língua linguagem, ser humano e matemática."
replace T03_05_01__10 = 1 if T03_05_01_other==".EM.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E M C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E M C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E M C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E M C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E,M,C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E. M. C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M .C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.c"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="E.M.C"
replace T03_05_01__10 = 1 if T03_05_01_other=="Ed. Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Ed. Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Ed. Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação  Moral Civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e  Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral E Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral E cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral E Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral E Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral E Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral e Cívica"
replace T03_05_01__10 = 1 if T03_05_01_other=="educação Moral e Cívicas"
replace T03_05_01__10 = 1 if T03_05_01_other=="Educação Moral Plástica"
replace T03_05_01__10 = 1 if T03_05_01_other=="EMC"
replace T03_05_01__10 = 1 if T03_05_01_other=="EMC."
replace T03_05_01__10 = 1 if T03_05_01_other=="MEC"
replace T03_05_01__10 = 1 if T03_05_01_other=="moral"
replace T03_05_01__10 = 1 if T03_05_01_other=="Moral Civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Moral e Civica"
replace T03_05_01__10 = 1 if T03_05_01_other=="Moral e Cívica"
replace T03_05_01__11 = 1 if T03_05_01_other=="inglês"

drop T03_05_01_other

order T03_05_01__10 T03_05_01__11, after(T03_05_01__9)

foreach var in 	T03_06_01 T03_07_01 T03_08_01 T03_09_01 T03_10_01 			///
				T03_03_02 T03_04_02 T03_06_02 T03_08_02 T03_09_02 T03_10_02	///
				T03_06_03 T03_09_03{
replace `var' = . if inlist(`var',-999999999,999)
}

label variable T03_06_01 `"How many parents came to talk about students performance"'
label values T03_07_01 freq1
label variable T03_07_01 `"Frequency of meetings between teacher and parents"'
label variable T03_08_01 `"How many parents come in meetings"'
label values T03_09_01 dummy
label variable T03_09_01 `"Selected class has an organised group of parents"'
label values T03_10_01 appointment
label variable T03_10_01 `"Nomination of parents group representantive"'

replace T03_10_01=. if T03_10_01==3
drop T03_10_01_other

label values T03_01_01_02 grade
label variable T03_01_01_02 `"Grade of class"'
label values T03_01_02_02 turma
label variable T03_01_02_02 `"ID of class"'
label values T03_01_03_02 shift
label variable T03_01_03_02 `"Period/shift of class"'
label variable T03_02_02 `"How many students in the class"'
label variable T03_03_02 `"How many students were one day absent in the last two weeks"'
label variable T03_04_02 `"How many students were absent more than one day in the last two weeks"'

label variable T03_05_02__1 `"Teacher teaches Portuguese language to this class"'
label variable T03_05_02__2 `"Teacher teaches mathematics to this class"'
label variable T03_05_02__3 `"Teacher teaches geology to this class"'
label variable T03_05_02__4 `"Teacher teaches history to this class"'
label variable T03_05_02__5 `"Teacher teaches natural science to this class"'
label variable T03_05_02__6 `"Teacher teaches manual work to this class"'
label variable T03_05_02__7 `"Teacher teaches music to this class"'
label variable T03_05_02__8 `"Teacher teaches gymnastics to this class"'
label variable T03_05_02__9 `"Teacher teaches environment studies to this class"'
label variable T03_05_02__10 `"Teacher teaches moral and civic education to this class"'

drop T03_05_02_other

label variable T03_06_02 `"How many parents came to talk about students performance"'
label values T03_07_02 freq1
label variable T03_07_02 `"Frequency of meetings between teacher and parents"'
label variable T03_08_02 `"How many parents come in meetings"'
label values T03_09_02 dummy
label variable T03_09_02 `"Selected class has an organised group of parents"'
label values T03_10_02 appointment
label variable T03_10_02 `"Nomination of parents group representantive"'

drop T03_10_02_other

label values T03_01_01_03 grade
label variable T03_01_01_03 `"Grade of class"'
label values T03_01_02_03 turma
label variable T03_01_02_03 `"ID of turma"'
label values T03_01_03_03 shift
label variable T03_01_03_03 `"Period/shift of class"'
label variable T03_02_03 `"How many students in the class"'
label variable T03_03_03 `"How many students were one day absent in the last two weeks"'
label variable T03_04_03 `"How many students were absent more than one day in the last two weeks"'

label variable T03_05_03__1 `"Teacher teaches Portuguese language to this class"'
label variable T03_05_03__2 `"Teacher teaches mathematics to this class"'
label variable T03_05_03__3 `"Teacher teaches geology to this class"'
label variable T03_05_03__4 `"Teacher teaches history to this class"'
label variable T03_05_03__5 `"Teacher teaches natural science to this class"'
label variable T03_05_03__6 `"Teacher teaches manual work to this class"'
label variable T03_05_03__7 `"Teacher teaches music to this class"'
label variable T03_05_03__8 `"Teacher teaches gymnastics to this class"'
label variable T03_05_03__9 `"Teacher teaches environment studies to this class"'
label variable T03_05_03__10 `"Teacher teaches moral and civic education to this class"'

drop T03_05_03_other

label variable T03_06_03 `"How many parents came to talk about students performance"'
label values T03_07_03 freq1
label variable T03_07_03 `"Frequency of meetings between teacher and parents"'
label variable T03_08_03 `"How many parents come in meetings"'
label values T03_09_03 dummy
label variable T03_09_03 `"Selected class has an organised group of parents"'
label values T03_10_03 appointment
label variable T03_10_03 `"Nomination of parents group representantive"'

drop T03_10_03_other

label variable T03_11__0 `"Teacher taught last year: pre-school"'
label variable T03_11__1 `"Teacher taught last year: grade 1"'
label variable T03_11__2 `"Teacher taught last year: grade 2"'
label variable T03_11__3 `"Teacher taught last year: grade 3"'
label variable T03_11__4 `"Teacher taught last year: grade 4"'
label variable T03_11__5 `"Teacher taught last year: grade 5"'
label variable T03_11__6 `"Teacher taught last year: grade 6"'
label variable T03_11__7 `"Teacher taught last year: grade 7"'
label variable T03_11__8 `"Teacher taught last year: grade 8"'
label variable T03_11__9 `"Teacher taught last year: grade 9"'
label variable T03_11__11 `"Teacher taught last year: module 1 (grades 1 and 2)"'
label variable T03_11__22 `"Teacher taught last year: module 2 (grades 3 and 4)"'
label variable T03_11__33 `"Teacher taught last year: module 3 (grades 5 and 6)"'

lab val T03_11__0 T03_11__1 T03_11__2 T03_11__3 T03_11__4 T03_11__5 		///
		T03_11__6 T03_11__7 T03_11__8 T03_11__9 T03_11__11 T03_11__22 		///
		T03_11__33 dummy

drop T03_11__999

label variable T03_11_00 `"Number of classes taught last year: pre-school"'
label variable T03_11_01 `"Number of classes taught last year: grade 1"'
label variable T03_11_02 `"Number of classes taught last year: grade 2"'
label variable T03_11_03 `"Number of classes taught last year: grade 3"'
label variable T03_11_04 `"Number of classes taught last year: grade 4"'
label variable T03_11_05 `"Number of classes taught last year: grade 5"'
label variable T03_11_06 `"Number of classes taught last year: grade 6"'
label variable T03_11_07 `"Number of classes taught last year: grade 7"'
label variable T03_11_08 `"Number of classes taught last year: grade 8"'
label variable T03_11_09 `"Number of classes taught last year: grade 9"'

label values T03_13 dummy
label variable T03_13 `"School diary"'

label values T03_14 dummy
label variable T03_14 `"Daily lesson plan"'

foreach var in 	T03_11__0 T03_11__1 T03_11__2 T03_11__3 T03_11__4 T03_11__5 ///
				T03_11__6 T03_11__7 T03_11__8 T03_11__9 T03_11__11 			///
				T03_11__22 T03_11__33 T03_11_00 T03_11_01 T03_11_02 		///
				T03_11_03 T03_11_04 T03_11_05 T03_11_06 T03_11_07 			///
				T03_11_08 T03_11_09 T03_13 T03_14{
replace `var' = . if inlist(`var',-999999999,999)
}

label variable T03_15__1 `"(Ordered) Teaching Method: Explain and read to students"'
label variable T03_15__2 `"(Ordered) Teaching Method: Writing on blackboard and students copy"'
label variable T03_15__3 `"(Ordered) Teaching Method: Students need to repeat several times"'
label variable T03_15__4 `"(Ordered) Teaching Method: Students reading out loud one by one"'
label variable T03_15__5 `"(Ordered) Teaching Method: Individual study, read in silence"'
label variable T03_15__6 `"(Ordered) Teaching Method: Interactively discussing with students"'
label variable T03_15__7 `"(Ordered) Teaching Method: Small group discussions/work"'

rename T03_15__8 T03_15__8_old

gen T03_15__8 = 0 if T03_15__1!=.
label variable T03_15__8 `"(Ordered) Teaching Method: Teacher mentions formal teaching method"'

replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="explicar do mais simples ao mais complexo."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="leitura feito pelo professor"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="ler as tarefas dos alunos"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Mostrar como se faz determinados calculos"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Mostrar e explicar"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="repetir para os alunos entender todos e método expositivo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Trabalho em grupo; Automatização Correcta."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Esplicativo: esplicar aos alunos o que será lecionado; Elaboração conjunta: perguntas e respostas. E trabalho independente: Trabalhos de casa."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicar, Instrutivo, Elaboração Conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativa e observação directs"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo , Exposição, Analítico Sintético ,  Observação"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo ; Elaboração conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo . Prático"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo e demostrativo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo, Analítico Sintético"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="explicativo, expositivo, intuitivo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="explicativo, global,  estrategico"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo, Interrogativo e Elaboração Conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="explicativo, intituvo, observação directa e indirecta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo, o metodo demostrativo e o ilustrativo."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="explicativo,diálogo e socráticos"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo,Expoxitivo,Endutivo dedutivo ,analitico sintetico...."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo,Pratico"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo;  Demonstrativo; Elaboração conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Demonstrativo."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Elaboração conjunta e trabalho independente"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Elaboração conjunta; Analítico/sintético."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Elaboração conjunta; Trabalho independente"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Elaboração conjunta; Trabalho independente."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Experimental;  Educativo/estrutivo"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Intuitivo; Elaboração conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Intuitivo; Elaboração conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Observação directa/ indirecta; Elaboração conjunta"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Observação indireta;. Diálogo orientado."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo; Participativo; Observação."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo;, ,Observação indirecta; Método prático."
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativo;Elaboração conjunta; Analítico/sintético"
replace T03_15__1 = T03_15__8_old if T03_15__1==0 & T03_15_other=="Explicativos Obs direita e indirecta, Elaboração conjunta"
replace T03_15__2 = T03_15__8_old if T03_15__2==0 & T03_15_other=="desenhar figuras n quadro e eles copiam"
replace T03_15__2 = T03_15__8_old if T03_15__2==0 & T03_15_other=="Desenhos no quadro, a grafia"
replace T03_15__2 = T03_15__8_old if T03_15__2==0 & T03_15_other=="escreve no quadro depois copiam para o caderno"
replace T03_15__2 = T03_15__8_old if T03_15__2==0 & T03_15_other=="escreve no quadro em seguida eles copiam para o caderno"
replace T03_15__2 = T03_15__8_old if T03_15__2==0 & T03_15_other=="Exercícios resolvido com a professora"
replace T03_15__4 = T03_15__8_old if T03_15__4==0 & T03_15_other=="Dramatização dos texto de Língua Portuguesa"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="escrever nos cadernos dos alunos"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="marcar o exercício no caderno de cada um"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="Resolver sozinho"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="Trabalho independente deixando cada um resolver próprio exercício"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="Trabalho independente, sendo que os alunos fazem exercícios individuais"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="Trabalho Independente/no qual os alunos lhes é dado uma tarefa e ele resolve sozinho"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="indutivo  e dedutivo / deixar eles fazerem primeiro e depois ajudá-los"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="Realizar tarefas em casa"
replace T03_15__5 = T03_15__8_old if T03_15__5==0 & T03_15_other=="diálogo e trabalho independente"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Dialogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Dialogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo com os alunos"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Explicação e Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="O dialogo."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Perguntas de controlo e explicações"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Puxar pela criança para chegar às respostas"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Observação por meio de figuras, Memorização por meio de canções"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Mandar ler todos em voz alta em conjunto"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Mandar o aluno ao quadro para resolver exercicios."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Mandar os alunos ao quadro"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="corta as cartolina em pedaços contendo as vogais distribuir aos alunos"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Desenhar em cartolina"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Jogo didáctico"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Manuseamento de objectos"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Perguntas e respostas,estudo em grupo!"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Conversar,Elaboração conjunta"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo , Explicar e Elaboração Conjunta"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo e Analítico Sintético"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo e Comando Directo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo e Demostrativo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo e Elaboração conjunta"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo e Elaboração Conjunta"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo, descritivo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Dialogo, especifico e o explicativo."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo, Explicativo e expositivo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo, Intuitivo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo; Explicativo; Demonstrativo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Diálogo; Explicativo; Trabalho em grupo."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Dialogo..."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Elaboração Conjunta,  Diálogo"
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Explicação e elaboração conjunta; Analítico e sintético; Intuitivo."
replace T03_15__6 = T03_15__8_old if T03_15__6==0 & T03_15_other=="Laboração conjunta, Dialogo, Explicativa"
replace T03_15__7 = T03_15__8_old if T03_15__7==0 & T03_15_other=="Perguntas e respostas,estudo em grupo!"
replace T03_15__7 = T03_15__8_old if T03_15__7==0 & T03_15_other=="Fazer ortografia permitindo que cada aluno corrija o exercício do outro"
replace T03_15__7 = T03_15__8_old if T03_15__7==0 & T03_15_other=="Explicativo; Trabalho em grupo; Automatização Correcta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Esplicativo: esplicar aos alunos o que será lecionado; Elaboração conjunta: perguntas e respostas. E trabalho independente: Trabalhos de casa."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicar, Instrutivo, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativa e observação directs"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo , Exposição, Analítico Sintético ,  Observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo ; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo . Prático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo e demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo, Analítico Sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="explicativo, expositivo, intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="explicativo, global,  estrategico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo, Interrogativo e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="explicativo, intituvo, observação directa e indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo, o metodo demostrativo e o ilustrativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="explicativo,diálogo e socráticos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo,Expoxitivo,Endutivo dedutivo ,analitico sintetico...."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo,Pratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo;  Demonstrativo; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Demonstrativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Elaboração conjunta e trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Elaboração conjunta; Analítico/sintético."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Elaboração conjunta; Trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Elaboração conjunta; Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Experimental;  Educativo/estrutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Intuitivo; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Intuitivo; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Observação directa/ indirecta; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Observação indireta;. Diálogo orientado."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Participativo; Observação."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo;, ,Observação indirecta; Método prático."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo;Elaboração conjunta; Analítico/sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativos Obs direita e indirecta, Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="diálogo e trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Conversar,Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo , Explicar e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo e Analítico Sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo e Comando Directo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo e Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo e Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo, descritivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Dialogo, especifico e o explicativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo, Explicativo e expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo, Intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo; Explicativo; Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diálogo; Explicativo; Trabalho em grupo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Dialogo..."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta,  Diálogo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicação e elaboração conjunta; Analítico e sintético; Intuitivo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Laboração conjunta, Dialogo, Explicativa"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analilitico sintectico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analise sintetico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítica Sintética, Observação Indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analitico e o intuitivo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico e observação directa"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analitico e sintectico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analítico e sintético , Socrático e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico e sintético; Observação directa e indirecta; Elaboração conjunta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico e Sintético."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico sincrético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analitico sintetico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico Sintetico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico Sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico sintético e Dedutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico sintético e indução e dedução"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético e Trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico Sintetico,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético, Diálogo, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico sintético, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético, Expositivo e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético, Indutivo e Observação indireta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Análitico Sintético, Indutivo, Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico Sintético, Observação Indirecta e o Intuitivo Dedutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico, Sintético e Global"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analitico/Sintético; Elaboração Conjunta; Diálogo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico/Sintético; Elaboração conjunta; Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico/sintético; Intuitivo; , Elaboração conjunto"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Analítico/sintético; Intuito e dedutivo; observação directa e indirecta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="analtico sinttico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Apresentar aos alunos como usar a tesoura"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Audiovisual e demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Auditivo, E método Declarativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="avaliar o grau de compreensão dos alunos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="dedutico e indutivo, demonstração"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Dedutivo, e Observação indireita"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Dedutivo, intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo e trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo e visita de campo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo, Elaboração conjunta, Pratico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo,Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativo; Prático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demonstrativos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostração Inlustrativa"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="demostrativo e expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo e Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo, Explicativo e Elaboração Conjunta..."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Demostrativo, intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Diagnóstico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="elaboração conjunta e demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta e Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta e expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta e independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta e Interrogativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta e Participativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta e Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta E Táticos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta e trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta trabalhos independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="elaboracao conjunta,  o metodo informativo e o somativo..."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, Dedutivo, Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta, Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, global, trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="elaboração conjunta, método de participação activa,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, Observação e explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, sintético Analítico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, Socrático e Indutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta, Trabalho em grupo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta, Trabalho Independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta,demostrativo e trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta; Demonstrativo; Explicativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta; Sintético/socrático; Explicativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta; Trabalho independente; Participativo/activo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração Conjunta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração conjunta(perguntas e respostas)"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Elaboração em conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Esplicativo ,Dialogo e elaboração conjunta..."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Espusitivo e Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="estudo analítico que é diagnosticar a comparticipação do aluno"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Exportação oral"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Exposição e prático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Exposição, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Exposição, Elaboração conjunta e Trabalho Independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositiva, Elaboração Conjunta e Trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo e  Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="expositivo e demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo, Activo, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo, Analítico sintético e a Observação indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="expositivo, analítico-sintetico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo, Demonstrativos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo,Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo; Diálogo; Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo; Explicativo; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo; Explicativo; Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expositivo; Explicativo; Interrogativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="expositivos e demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Expressivo e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Gestual ,Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Global, Analítico Sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Identificação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="ilustrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Ilustrativo, trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo e Dedutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="indutivo e demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo e exposição"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo e Socratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Indutivo,socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="indutivo.dedutivos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Interacção professora e alunos"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Interrogativa e elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Interrogativo ,elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Interrogativo, e Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Interrogativo; Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Intuitivo, Analítico sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Intuitivo, elaboração conjunta, observação indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Intuitivo, Explicativo, Analítico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Intuitivo, Socrático e Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Intuitivo; Analítico/sintético e observação directa e indireta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Laboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="método analítico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Metodo analitico e sintectico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método analítico e sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="metodo analitico sintetico."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Ativo e Observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Conjuntivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método de observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método de observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método de observação directa e indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="método de observação direito"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método de orientação direita e indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método de trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Dedutivo e indutivo e Pensamento Lógico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Dedutivo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Demonstrativo e Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Diagnóstico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="método expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Expositivo, Oral E Elaboração conjunta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Formativo e Avaliativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="metodo ilustrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método indutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Indutivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Interrogativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Interrogativo e Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método interrogativo testes"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Interrogativo, Participativo e Activo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Metodo oral, o metodo explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método pratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método Pratico:Exemplo: quando estiver a falar de carro levam a pratica desenhando"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="metodo socratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="método socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="método socrático (perguntas e respostas) e demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Método socrático e exposição"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Metodos da gravura. brincar no patio da escola."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Métodos Prático, Socrático e Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="O metodo interrogativo."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação directa e indirecta e Independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="observação directa e indirecta e o trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação directa ou indirecta, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação directa, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação directa, Ilustrativo e Demonstrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação direita e indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação direta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação Direta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação direta e indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação e demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação indirecta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação indirecta; Elaboração conjunta; Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação, Analítico, Sintético"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação, de Ábaco"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="observação, demostrativo e expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação, Explicativo,Elaboração Conjunta, Demostrativo,Socrático, Elaboração Conjunta,etc."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="observação, exposição,trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="observação, expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação,Demostrativo e Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação,Expositivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação; Elaboração conjunta; Analitico/sintético."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação; Explicativo; Elaboração conjunta."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Orais.Elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="oral pratico e visual"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="participatico  Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Participativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Participativo, Demostrativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Participativo,socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Prática"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Pratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Pratico e Transversal"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Prático,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Pratico, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Prático,Intuitivo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Prático; Explicativo e elaboração conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socratico"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="socrático"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="socrático (pergunta e respostas)"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático,"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Socrático, Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho Independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="trabalho independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho Independente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente, Elaboração Conjunta"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente, Observação directa"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independente."
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho Independente. Elaboração Conjunta. Explicativo"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Trabalho independentemente"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Observação por meio de figuras, Memorização por meio de canções"
replace T03_15__8 = T03_15__8_old if T03_15__8==0 & T03_15_other=="Explicativo; Trabalho em grupo; Automatização Correcta."

order T03_15__8, after(T03_15__7)

drop T03_15__0 T03_15__8_old T03_15__999 T03_15_other

foreach var in 	T03_15__1 T03_15__2 T03_15__3 T03_15__4 T03_15__5 			///
				T03_15__6 T03_15__7 T03_15__8 T03_16 T03_17 T03_18 T03_19 	///
				T03_20 T03_21 T03_22 {
replace `var' = . if inlist(`var',999,-999999999)
}

foreach var in T03_16 T03_17 T03_18 T03_19 T03_20 T03_21 T03_22{
replace `var' = 0 if `var'==2
}
label values T03_16 dummy
label variable T03_16 `"Teaching Method: Explain and read to students"'

label values T03_17 dummy
label variable T03_17 `"Teaching Method: Writing on blackboard and students copy"'

label values T03_18 dummy
label variable T03_18 `"Teaching Method: Students need to repeat several times"'

label values T03_19 dummy
label variable T03_19 `"Teaching Method: Students reading out loud one by one"'

label values T03_20 dummy
label variable T03_20 `"Teaching Method: Individual study, read in silence"'

label values T03_21 dummy
label variable T03_21 `"Teaching Method: Interactively discussing with students"'

label values T03_22 dummy
label variable T03_22 `"Teaching Method: Small group discussions/work"'

drop T03_23
gen T03_23 = 0 if T03_16!=.
label values T03_23 dummy
label variable T03_23 `"Teaching Method: Teacher mentions formal teaching method"'

order T03_23, after(T03_22)

replace T03_16 = 1 if T03_23_other=="depois de escrever e explicar peço também aos alunos para virem repetir ao quadro"
replace T03_19 = 1 if T03_23_other=="Leitura por filas"
replace T03_20 = 1 if T03_23_other=="As vezes aplica trabalhos independentes."
replace T03_20 = 1 if T03_23_other=="Deixar que os alunos desenvolvam um trabalho pessoalmente"
replace T03_20 = 1 if T03_23_other=="Diferenciação Em alguns exercícios, para alguns alunos menos dotads."
replace T03_20 = 1 if T03_23_other=="Estudo de palavras"
replace T03_20 = 1 if T03_23_other=="Estudo individual"
replace T03_20 = 1 if T03_23_other=="Estudo na area livre"
replace T03_20 = 1 if T03_23_other=="Estudos Individual"
replace T03_20 = 1 if T03_23_other=="Fazer Exercícios Individuais"
replace T03_20 = 1 if T03_23_other=="Individual"
replace T03_20 = 1 if T03_23_other=="Individual"
replace T03_20 = 1 if T03_23_other=="tarefa para fazer em casa"
replace T03_20 = 1 if T03_23_other=="tarefas paralelas"
replace T03_20 = 1 if T03_23_other=="Trabalho independente"
replace T03_20 = 1 if T03_23_other=="trabalho independente"
replace T03_20 = 1 if T03_23_other=="Trabalho independente"
replace T03_20 = 1 if T03_23_other=="Trabalho independente"
replace T03_20 = 1 if T03_23_other=="Trabalho Independente"
replace T03_20 = 1 if T03_23_other=="Trabalho independente (tarefa)"
replace T03_20 = 1 if T03_23_other=="trabalho independente (trabalho para casa)"
replace T03_20 = 1 if T03_23_other=="Trabalho independente."
replace T03_20 = 1 if T03_23_other=="Trabalho Individual"
replace T03_20 = 1 if T03_23_other=="Trabalho individual"
replace T03_20 = 1 if T03_23_other=="trabalho individual,mandar faser leituras."
replace T03_20 = 1 if T03_23_other=="Trabalhos individuais"
replace T03_20 = 1 if T03_23_other=="Trabalhos individual"
replace T03_20 = 1 if T03_23_other=="trabalho indivídual e em grupo"
replace T03_20 = 1 if T03_23_other=="aplicação de tarefas para casa"
replace T03_21 = 1 if T03_23_other=="chamar ao quadro um por um"
replace T03_21 = 1 if T03_23_other=="O aluno fazer exercício no quadro"
replace T03_21 = 1 if T03_23_other=="Pergunta direta aos alunos"
replace T03_21 = 1 if T03_23_other=="pergunta do professor e resposta dos alunos"
replace T03_21 = 1 if T03_23_other=="Voluntários para o Quadro"
replace T03_21 = 1 if T03_23_other=="Brincadeira e desafios"
replace T03_21 = 1 if T03_23_other=="cantos na sala de aula facilita também a aprendizagem"
replace T03_21 = 1 if T03_23_other=="criar temas de desenho junto com os alunos"
replace T03_21 = 1 if T03_23_other=="Desafio"
replace T03_21 = 1 if T03_23_other=="Desenho em cartolina"
replace T03_21 = 1 if T03_23_other=="Estimular a leitura e aprendizagem por meio de presentinhos como rebuçados."
replace T03_21 = 1 if T03_23_other=="Explicar como se for uma música"
replace T03_21 = 1 if T03_23_other=="Jogos"
replace T03_21 = 1 if T03_23_other=="Jogos"
replace T03_21 = 1 if T03_23_other=="método de jogos de pedrinhas"
replace T03_21 = 1 if T03_23_other=="Pauzinhos"
replace T03_21 = 1 if T03_23_other=="Usar o método simples e natural na Matemática usando pedrinhas na contagem e arriscar ao chão"
replace T03_21 = 1 if T03_23_other=="Aula de campo"
replace T03_21 = 1 if T03_23_other=="Aulas de demostração"
replace T03_21 = 1 if T03_23_other=="aulas de observação fora da turma e depois cada uma partilha sua experiência"
replace T03_21 = 1 if T03_23_other=="estudo de campo"
replace T03_21 = 1 if T03_23_other=="Estudos no campo"
replace T03_21 = 1 if T03_23_other=="na aula de geografia saem para mostrar a realidade do meio ambiente"
replace T03_21 = 1 if T03_23_other=="sair com os alunos para mostras Gravuras entre outros relacionando com a matéria"
replace T03_21 = 1 if T03_23_other=="Visita de Campo"
replace T03_22 = 1 if T03_23_other=="trabalho indivídual e em grupo"
replace T03_22 = 1 if T03_23_other=="dividir a turma em grupo para avaliar por grupo"
replace T03_22 = 1 if T03_23_other=="GRUPOS PARTICULAR . ESTUDO EM Grupo EM CASA PARA MELHORAR A CAPACIDADE MENTAL DO ALUNO."
replace T03_22 = 1 if T03_23_other=="Trabalho em grupo"
replace T03_22 = 1 if T03_23_other=="Trabalho em Grupo"
replace T03_22 = 1 if T03_23_other=="Trabalho em grupo e o método explicativo"
replace T03_22 = 1 if T03_23_other=="Trabalhos em Grupos"
replace T03_23 = 1 if T03_23_other=="Dialogo"
replace T03_23 = 1 if T03_23_other=="dividir letras por números no quadro e exigi-los a formar palavras"
replace T03_23 = 1 if T03_23_other=="A aprendizagem cooperativa"
replace T03_23 = 1 if T03_23_other=="Activos participativo e expositivo"
replace T03_23 = 1 if T03_23_other=="Analítico e Sintético."
replace T03_23 = 1 if T03_23_other=="Analítico sentetico"
replace T03_23 = 1 if T03_23_other=="Analítico sintético"
replace T03_23 = 1 if T03_23_other=="Analítico Sintético, Elaboração Conjunta, Indutivo Dedutivo e Método Socrático"
replace T03_23 = 1 if T03_23_other=="Analítico sintético, socrático, perguntas e respostas."
replace T03_23 = 1 if T03_23_other=="Analítico, Sintetico,Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Aprendizagem Directa"
replace T03_23 = 1 if T03_23_other=="Automatização correta das palavras indutivo de dutivo"
replace T03_23 = 1 if T03_23_other=="Dedutivo , Indutivo, Analitico Sintentico"
replace T03_23 = 1 if T03_23_other=="dedutivo (tirar de desconhecido paraconhecido) e analítico"
replace T03_23 = 1 if T03_23_other=="Demonstrativa ilustrar o que se ensina"
replace T03_23 = 1 if T03_23_other=="Demostrativo e o diálogo"
replace T03_23 = 1 if T03_23_other=="Demostrativo prático"
replace T03_23 = 1 if T03_23_other=="Educativo e instrutivo"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração Conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta ( socrático, explicativo)"
replace T03_23 = 1 if T03_23_other=="elaboração conjunta e participativo"
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta, exercitação."
replace T03_23 = 1 if T03_23_other=="Elaboração conjunta,expositivo e a observação..."
replace T03_23 = 1 if T03_23_other=="Exercício"
replace T03_23 = 1 if T03_23_other=="Explicação, exposição..."
replace T03_23 = 1 if T03_23_other=="Explicativo ,Demostrativo"
replace T03_23 = 1 if T03_23_other=="Explicativo e elaboração conjunta"
replace T03_23 = 1 if T03_23_other=="Exposição"
replace T03_23 = 1 if T03_23_other=="Expositivo"
replace T03_23 = 1 if T03_23_other=="Expositivo"
replace T03_23 = 1 if T03_23_other=="Expositivo"
replace T03_23 = 1 if T03_23_other=="Expositivo e demostrativo mas os métodos varia de disciplina por disciplina."
replace T03_23 = 1 if T03_23_other=="expositivo, demonstrativo"
replace T03_23 = 1 if T03_23_other=="Expositivo, elaboração conjunta,analítico sintético, prático"
replace T03_23 = 1 if T03_23_other=="Expositivo, explicativo,intuitivo."
replace T03_23 = 1 if T03_23_other=="Expressão livre aonde a criança expressa, aquilo sabe"
replace T03_23 = 1 if T03_23_other=="ilustração e demonstrativo"
replace T03_23 = 1 if T03_23_other=="ilustrativo, demonstrativo, sintético e analítico"
replace T03_23 = 1 if T03_23_other=="Ilustrativo,analítico-sintetico."
replace T03_23 = 1 if T03_23_other=="Interpretação e exploração do vocabulário"
replace T03_23 = 1 if T03_23_other=="Interrogativo"
replace T03_23 = 1 if T03_23_other=="intuitivo"
replace T03_23 = 1 if T03_23_other=="Intuitivo ,dedutivo,   prático , analítico"
replace T03_23 = 1 if T03_23_other=="Intuitivo; Dedutivo; Analítico e sintético."
replace T03_23 = 1 if T03_23_other=="Método  Indutivo, Dedudutivo, Analítico Sintético e método de observação."
replace T03_23 = 1 if T03_23_other=="Método Avaliativo"
replace T03_23 = 1 if T03_23_other=="Método Colectivo"
replace T03_23 = 1 if T03_23_other=="Metodo conjunta"
replace T03_23 = 1 if T03_23_other=="Método de elaboração conjunta,observação."
replace T03_23 = 1 if T03_23_other=="Metodo de excursão programada"
replace T03_23 = 1 if T03_23_other=="método de observação"
replace T03_23 = 1 if T03_23_other=="Método de Observação"
replace T03_23 = 1 if T03_23_other=="método de observação direita"
replace T03_23 = 1 if T03_23_other=="Método De Observação, trabalho independente."
replace T03_23 = 1 if T03_23_other=="método de trabalho independente"
replace T03_23 = 1 if T03_23_other=="método demonstrativo"
replace T03_23 = 1 if T03_23_other=="Método expositivo"
replace T03_23 = 1 if T03_23_other=="método indutivo"
replace T03_23 = 1 if T03_23_other=="Método interrogativo"
replace T03_23 = 1 if T03_23_other=="Método interrogativo, prático, observação, elaboracao conjunta,explicativo, dialogo."
replace T03_23 = 1 if T03_23_other=="Método interrogativo(a professora dirige algumas perguntas aos alunos"
replace T03_23 = 1 if T03_23_other=="Metodo interrogativos"
replace T03_23 = 1 if T03_23_other=="método intuitivo"
replace T03_23 = 1 if T03_23_other=="Método intuitivo Direto e indirecto"
replace T03_23 = 1 if T03_23_other=="Método Observativo"
replace T03_23 = 1 if T03_23_other=="Metodo participarivo"
replace T03_23 = 1 if T03_23_other=="Método Prático"
replace T03_23 = 1 if T03_23_other=="Método Prático."
replace T03_23 = 1 if T03_23_other=="método socratico"
replace T03_23 = 1 if T03_23_other=="Método Socrático"
replace T03_23 = 1 if T03_23_other=="Observação"
replace T03_23 = 1 if T03_23_other=="Observação ao ar livre"
replace T03_23 = 1 if T03_23_other=="Observação Científica, Prática, Oral e Analítico Sintético"
replace T03_23 = 1 if T03_23_other=="Observação directa"
replace T03_23 = 1 if T03_23_other=="Observação directa"
replace T03_23 = 1 if T03_23_other=="Observação directa e indirecta"
replace T03_23 = 1 if T03_23_other=="Observação directa e indirecta"
replace T03_23 = 1 if T03_23_other=="Observação directa."
replace T03_23 = 1 if T03_23_other=="Observação direita ou endireita"
replace T03_23 = 1 if T03_23_other=="Observação direita ou endireita"
replace T03_23 = 1 if T03_23_other=="Observação direta ,pratica experimental"
replace T03_23 = 1 if T03_23_other=="Observação, Trabalho independente."
replace T03_23 = 1 if T03_23_other=="Pratico"
replace T03_23 = 1 if T03_23_other=="Prático,Trabalho independente."
replace T03_23 = 1 if T03_23_other=="Práticos"
replace T03_23 = 1 if T03_23_other=="sintético dedotivo endutuvo"
replace T03_23 = 1 if T03_23_other=="Socratico"
replace T03_23 = 1 if T03_23_other=="socrático"
replace T03_23 = 1 if T03_23_other=="sons"
replace T03_23 = 1 if T03_23_other=="Varia de disciplina a disciplina: Usa-se sintético, pratico, demostrativo e a voz de comando directo"
replace T03_23 = 1 if T03_23_other=="Metodo de Exposição: Mostrar na  realidade os componentes de uma determinada planta..."

drop T03_23_other

foreach var in 	T03_24__1 T03_24__2 T03_24__3 T03_24__4 T03_24__5 T03_24__6 ///
				T03_24__7 T03_24__8 T03_24__9 T03_25 T03_26 T03_27 T03_28 	///
				T03_29 T03_30 T03_31 T03_32 T03_33 T03_34{
replace `var' = . if inlist(`var',999,-999999999)
}

label variable T03_24__1 `"(Ordered) Disciplinary Method: Talk to student"'
label variable T03_24__2 `"(Ordered) Disciplinary Method: Expel student"'
label variable T03_24__3 `"(Ordered) Disciplinary Method: Physical punishment"'
label variable T03_24__4 `"(Ordered) Disciplinary Method: Extra classes or homework"'
label variable T03_24__5 `"(Ordered) Disciplinary Method: Keep students in class after school"'
label variable T03_24__6 `"(Ordered) Disciplinary Method: Forbid sport or ludic activity"'
label variable T03_24__7 `"(Ordered) Disciplinary Method: Inform parents"'
label variable T03_24__8 `"(Ordered) Disciplinary Method: Manual labor"'
label variable T03_24__9 `"(Ordered) Disciplinary Method: Keep students inside the classroom during break"'

rename T03_24__10 T03_24__10_old
gen T03_24__10 = 0 if T03_24__1!=.
gen T03_24__11 = 0 if T03_24__1!=.

label variable T03_24__10 `"(Ordered) Disciplinary Method: Send/talk to school board"'
label variable T03_24__11 `"(Ordered) Disciplinary Method: Change seat / isolate student"'

order T03_24__10 T03_24__11, after(T03_24__9)

replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Alerta. Silêncio!!"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Explicativo, experiências, diálogo."
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Incentivar o aluno controlando os barulhentos."
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Insistir na sensibilização até molda-lo"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="instrutivo e educativo"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Manter o rigor com a criança para que tenha medo"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Pedir aos alunos para abusarem"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Prestar mais atenção a ele"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Prestar mais atenção a ele"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Procurar Ser amigo do Aluno"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="repreensão"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Levar a direção ou eu mesma vou ao encontro dos pais"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Colocar os envolvidos enfrente e obriga-los  a se desculparem"
replace T03_24__1 = T03_24__10_old if T03_24__1==0 & T03_24_other=="Depois de advertência verbal e por escrito, pode se chegar ao ponto de expulsar o aluno"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="chegou atrasado  não entra na sala de aula"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="Fica fora ,ate q a aula termina"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="Mandar o aluno ir embora"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="põe o aluno fora da sala"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="Quando atrasande maois regressa para casa"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="Quem não fazer tarefa é retirado da turma"
replace T03_24__2 = T03_24__10_old if T03_24__2==0 & T03_24_other=="Depois de advertência verbal e por escrito, pode se chegar ao ponto de expulsar o aluno"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Algumas vezes umas palmadas"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Caso o aluno estiver a dormir lhe é mandado ficar em pé"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Colocar o aluno em pe."
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Colocar o alunos em pé"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Desincentivar dando rebubuçado aos outros. Manter o aluno de pé"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Em casos extremo dar reguadas"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Ficam de castigo em pé"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="ficar de pé durante 5 minutos ou mudar de lugar"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Ficar uns minutos em pé."
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Manter o aluno em pé enquanto os outros se mantenham centado"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Não dar prenda e por de joelho"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Para os que não cumprem com a tarefa de casa levam palmadinha"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Por de joelho como forma de correção..."
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="por o aluno em pé por 5 minutos"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Proibir de fazer necessidade."
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="proibir o lanche"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Punição feita por palmatória"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="puxão na orelha"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Um puxão na orelha"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Uma ves a outra uma chicotada"
replace T03_24__3 = T03_24__10_old if T03_24__3==0 & T03_24_other=="Ums puxõs, chicotadinhas as veses"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Aplicar pequenos Castigos"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="aplicar questões individuais"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Coloca um cargo no grupo criado no sentido de lhe puchar ou seja chama-lo psra s responsibilidade"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Da-lhes mais exercícios...."
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="dar mas tarefas de casa"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Dar-lhe um cargo"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Fazer cópias"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="fazer cópias, oferecer a merenda de um aluno ao outro"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Ir ao quadro constantemente na aula de matemática"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Mandar ler algo que ele não esperava"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Mandar ler o texto ao aluno mais vezes."
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Mandar los ao quadro"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Mandar o aluno ao quadro"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="mandar trabalho de casa"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Questionar os alunos a matéria anterior"
replace T03_24__4 = T03_24__10_old if T03_24__4==0 & T03_24_other=="Se nao fez a tarefa o aluno devera resolver a tarefa no quadro."
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="anotar na sua caderneta de avaliação"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="Castiga fazendo cópia...."
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="chamar o encarregado"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="chamar o encarregado de educação;"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="dar a conhecer a direção para chamar o encarregado junto tomar decisão"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="Falar com os encarregados"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="Caso o pai não aparece comunico a direcção da escola"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="Levar a direção ou eu mesma vou ao encontro dos pais"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="levar a direção e junto com encarregado tomar uma decisão"
replace T03_24__7 = T03_24__10_old if T03_24__7==0 & T03_24_other=="Depois de advertência verbal e por escrito, pode se chegar ao ponto de expulsar o aluno"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Banda o aluno trazer um garrafão com água"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Fazer limpeza."
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Higene Pessoal"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="higiene pessoal"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Higienização"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Limpeza"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Manda ir buscar agua na cacimba e varrer o patio..."
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="manda varrer a sala e regar as plantas."
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Mandar o aluno cuidar da higiene no WC"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Organizar a sala no dia seguinte"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="trazer água"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Trazer água pra escola."
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Varrer a sala"
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Varrer a sala."
replace T03_24__8 = T03_24__10_old if T03_24__8==0 & T03_24_other=="Varrer o Pátio ou Apanhar Papel"
replace T03_24__9 = T03_24__10_old if T03_24__9==0 & T03_24_other=="Diminuir no tempo de intervalo"
replace T03_24__9 = T03_24__10_old if T03_24__9==0 & T03_24_other=="Ficar na sala cinco minutos depois do toque de intervalo."
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Caso o pai não aparece comunico a direcção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar a direção ou eu mesma vou ao encontro dos pais"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="levar a direção e junto com encarregado tomar uma decisão"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Chamar o coordenador da área disciplinar"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Comunicar a direção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Comunicar a direcção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Conversar com o Director"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Dar a conhecer o caso a Direção de escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Dar a responsabilidade a direção caso seja grave."
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Dar o caso a direção de escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Em casos mais graves pede opinião à Sra Directora"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encamihar a direção da Escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar a direção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar a situação na direção d Escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar ao gabinete do Diretor"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="encaminhar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar na direção escolar"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar no director"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar o Problema na Direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar Para a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar para a direção da Escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar para a direção de escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Encaminhar para direção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Envia um comunicado a direccao"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Enviar o caso a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Falar ao director"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Falar Com a Direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="falar com director"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Informar o aluno á direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="leva a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="leva a direção ou pode chegar a levar um puxão na orelha na ausencia dos colegas"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Leva a direcção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levá-lo para a direção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar  Direção de escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="levar a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="levar à direcção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar ao quadro"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar da direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="levar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="levar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar o aluno a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar o aluno da direcção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar o aluno na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levar o aluno para a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Levo a direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Mandar o aluno para o chefe do turno"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Notifica-lo na Direção da escola"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Passar Ao gabinete director se for necessário"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="por a questão na direção"
replace T03_24__10 = T03_24__10_old if T03_24__10==0 & T03_24_other=="Falta de indisciplina e peva o caso na direção da escola"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Colocar o aluno em silêncio"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Colocar o aluno ao lado do professor"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Divisão da turma caso comporta-se mal"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Esola-lo"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Isolá-lo na sala"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="isolar para outro ligar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="lhe mudo de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Mudança de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Mudança de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Mudança de lugar."
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Mudança de lugar."
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="mudança de turma a quem faz barulho"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Separa-los"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Separar quando for muito barulhento."
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Transferir de  uma carteira para outra ficando ele na cadeira da frente"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Troca de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="troca o lugar dos alunos"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="troca-lo"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="trocar de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Trocar de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="trocar de lugar"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Trocar o aluno de carteira"
replace T03_24__11 = T03_24__10_old if T03_24__11==0 & T03_24_other=="Trocar_lhe de lugar"

drop T03_24__0 T03_24__10_old T03_24__999 T03_24_other


foreach var in T03_25 T03_26 T03_27 T03_28 T03_29 T03_30 T03_31 T03_32 T03_33{
replace `var' = 0 if `var'==2
}

label values T03_25 dummy
label variable T03_25 `"Disciplinary Method: Talk to student"'

label values T03_26 dummy
label variable T03_26 `"Disciplinary Method: Expel student"'

label values T03_27 dummy
label variable T03_27 `"Disciplinary Method: Physical punishment"'

label values T03_28 dummy
label variable T03_28 `"Disciplinary Method: Extra classes or homework"'

label values T03_29 dummy
label variable T03_29 `"Disciplinary Method: Keep students in class after school"'

label values T03_30 dummy
label variable T03_30 `"Disciplinary Method: Forbid sport or ludic activity"'

label values T03_31 dummy
label variable T03_31 `"Disciplinary Method: Inform parents"'

label values T03_32 dummy
label variable T03_32 `"Disciplinary Method: Manual labor"'

label values T03_33 dummy
label variable T03_33 `"Disciplinary Method: Keep students inside the classroom during break"'

drop T03_34
gen T03_34 = 0 if T03_25!=.

label values T03_34 dummy
label variable T03_34 `"Disciplinary Method: Send/talk to school board"'

order T03_34, after(T03_33)

replace T03_25 = 1 if T03_34_other=="Fazer propostas com os alunos Ex o aluno que se comportar bem terá prémio"
replace T03_25 = 1 if T03_34_other=="Ir ao encontro do aluno quando falta a escola"
replace T03_25 = 1 if T03_34_other=="Pedir desculpas"
replace T03_26 = 1 if T03_34_other=="Vai pra casa"
replace T03_27 = 1 if T03_34_other=="Colocar o aluno em Pé."
replace T03_27 = 1 if T03_34_other=="Escrever em pés"
replace T03_27 = 1 if T03_34_other=="Ficar em pé 10 á 15 minutos"
replace T03_27 = 1 if T03_34_other=="Manter o aluno depe durante as aulas"
replace T03_28 = 1 if T03_34_other=="30 min de Leitura"
replace T03_28 = 1 if T03_34_other=="Fazer 5 copias"
replace T03_28 = 1 if T03_34_other=="Mandar mas tarefas"
replace T03_29 = 1 if T03_34_other=="Cuidar da Higiene da sala"
replace T03_29 = 1 if T03_34_other=="Manda trazer Água"
replace T03_29 = 1 if T03_34_other=="Manda trazer água"
replace T03_29 = 1 if T03_34_other=="Recolher o lixo ao redor da sala"
replace T03_29 = 1 if T03_34_other=="Regar as plantas"
replace T03_29 = 1 if T03_34_other=="varrer"
replace T03_29 = 1 if T03_34_other=="varrer a sala"
replace T03_33 = 1 if T03_34_other=="Retira-se-lhe o intervalo"
replace T03_34 = 1 if T03_34_other=="Levar  ao Gabinete da Diretora"

drop T03_34_other

********************************************************************************

********************************************************************************

* Section 4 (director section 5)

// labelssss

#delimit ;
;
label define responsible
1 `"Director"'
2 `"Deputy director"'
3 `"School board"'
4 `"Another senior teacher"'
5 `"Another teacher"'
6 `"Representative of provincial board"'
7 `"Representative of municipal/comunal board"'
8 `"Representative of ministry of education"'
9 `"Other (not specified)"'
;
#delimit cr

foreach var in T04_01 T04_02_01 T04_03_01 T04_02_02 T04_03_02 T04_02_03 	///
	T04_03_03 T04_02_04 T04_03_04 T04_02_05 T04_03_05 T04_02_06 T04_03_06 	///
	T04_02_07 T04_03_07 T04_02_08 T04_03_08 T04_02_09 T04_03_09 T04_02_10 	///
	T04_03_10_other T04_04 T04_05_01 T04_05_02__1  							///
	T04_05_02__2 T04_05_02__3 T04_05_02__4 T04_05_02__5 T04_05_02__6  		///
	T04_05_02__7 T04_05_02__8 T04_05_02__9 T04_05_02__10 T04_05_02__11  	///
	T04_05_02__12 T04_06_01 T04_07_01 T04_06_02 T04_07_02  					///
	T04_06_03 T04_07_03 T04_06_04 T04_07_04 T04_06_05 T04_07_05 T04_06_06 	///
	T04_07_06 T04_06_07 T04_07_07 T04_06_08 T04_07_08 T04_06_09 T04_07_09 	///
	T04_06_10 T04_07_10 T04_06_11 T04_07_11 T04_06_12 T04_07_12 T04_08_01 	///
	T04_08_02__1 T04_08_02__2 T04_08_02__3 T04_08_02__4 T04_08_02__5  		///
	T04_08_02__6 T04_08_02__7 T04_08_02__8 T04_08_02__9 T04_08_02__10  		///
	T04_08_02__11 T04_08_02__12 T04_08_02__999 T04_08_02__0  				///
	T04_09_01 T04_10_01 T04_09_02 T04_10_02 T04_09_03 T04_10_03 T04_09_04 	///
	T04_10_04 T04_09_05 T04_10_05 T04_09_06 T04_10_06 T04_09_07 T04_10_07 	///
	T04_09_08 T04_10_08 T04_09_09 T04_10_09 T04_09_10 T04_10_10 T04_09_11 	///
	T04_10_11 T04_09_12 T04_10_12 {
replace `var' = . if inlist(`var',999,-999999999)
}

label values T04_01 dummy
label variable T04_01 `"Teacher is formally evaluated"'

lab val T04_02_01 T04_02_02 T04_02_03 T04_02_04 T04_02_05 T04_02_06 		///
		T04_02_07 T04_02_08 T04_02_09 T04_02_10 dummy

rename T04_03_10_other T04_03_10

lab val T04_03_01 T04_03_02 T04_03_03 T04_03_04 T04_03_05 T04_03_06 		///
		T04_03_07 T04_03_08 T04_03_09 T04_03_10 responsible

replace T04_02_06 = 1 if T04_02_10_other=="Através da verificação dos cadernos da professora"
replace T04_02_06 = 1 if T04_02_10_other=="avaliação de planos e cadernetas"

replace T04_03_06 = T04_03_10 if T04_02_10_other=="Através da verificação dos cadernos da professora"
replace T04_03_06 = T04_03_10 if T04_02_10_other=="avaliação de planos e cadernetas"

drop T04_02_10 T04_02_10_other T04_03_10

label variable T04_02_01 `"Performance Evaluation Method: Observation in class"'
label variable T04_03_01 `"Responsible for Evaluation Method: Observation in class"'
label variable T04_02_02 `"Performance Evaluation Method: Students classification"'
label variable T04_03_02 `"Responsible for Evaluation Method: Students classification"'
label variable T04_02_03 `"Performance Evaluation Method: Work done by students"'
label variable T04_03_03 `"Responsible for Evaluation Method: Work done by students"'
label variable T04_02_04 `"Performance Evaluation Method: Students attendance"'
label variable T04_03_04 `"Responsible for Evaluation Method: Students attendance"'
label variable T04_02_05 `"Performance Evaluation Method: Employees interview"'
label variable T04_03_05 `"Responsible for Evaluation Method: Employees interview"'
label variable T04_02_06 `"Performance Evaluation Method: Monitoring daily tasks"'
label variable T04_03_06 `"Responsible for Evaluation Method: Monitoring daily tasks"'
label variable T04_02_07 `"Performance Evaluation Method: Teachers attendance"'
label variable T04_03_07 `"Responsible for Evaluation Method: Teachers attendance"'
label variable T04_02_08 `"Performance Evaluation Method: Monitoring of other reports"'
label variable T04_03_08 `"Responsible for Evaluation Method: Monitoring of other reports"'
label variable T04_02_09 `"Performance Evaluation Method: Parents satisfaction with performance child"'
label variable T04_03_09 `"Responsible for Evaluation Method: Parents satisfaction with performance child"'

label variable T04_04 `"Late in last two weeks"'
label variable T04_05_01 `"Days absence in last two weeks"'

replace T04_04 = 10 if T04_04>10 & T04_04!=.
replace T04_05_01 = 10 if T04_05_01>10 & T04_05_01!=.

rename T04_05_02__12 T04_05_02__12_old
rename T04_06_12 T04_06_12_old
rename T04_07_12 T04_07_12_old

gen T04_05_02__12 = 0 if T04_05_02__1!=.
gen T04_05_02__13 = 0 if T04_05_02__1!=.
gen T04_06_12 = .
gen T04_06_13 = .
gen T04_07_12 = .
gen T04_07_13 = .

order T04_05_02__12 T04_05_02__13, after(T04_05_02__11)
order T04_06_11 T04_07_11 T04_06_12 T04_07_12 T04_06_13 T04_07_13, after(T04_07_10)

replace T04_05_01 = 0 if T04_05_02_other=="Não  faltou"
replace T04_05_01 = 0 if T04_05_02_other=="Não recorda ter faltado...."

replace T04_05_02__4 = 1 if T04_05_02_other=="Assalto"
replace T04_05_02__4 = 1 if T04_05_02_other=="Assuntos Familiares"
replace T04_05_02__4 = 1 if T04_05_02_other=="Campa da sogra"
replace T04_05_02__4 = 1 if T04_05_02_other=="Campa de um familiar"
replace T04_05_02__4 = 1 if T04_05_02_other=="Casamento"
replace T04_05_02__4 = 1 if T04_05_02_other=="Casamento"
replace T04_05_02__4 = 1 if T04_05_02_other=="Casamento de um irmão, fora da província."
replace T04_05_02__4 = 1 if T04_05_02_other=="Casamento do irmão do pai"
replace T04_05_02__4 = 1 if T04_05_02_other=="casamentos"
replace T04_05_02__4 = 1 if T04_05_02_other=="foi ao casamento"
replace T04_05_02__4 = 1 if T04_05_02_other=="Foi assistir a defesa de um irmão"
replace T04_05_02__4 = 1 if T04_05_02_other=="Foi visitar a família."
replace T04_05_02__4 = 1 if T04_05_02_other=="Ida a Escola de sua educanda"
replace T04_05_02__4 = 1 if T04_05_02_other=="para participar de um casamento"
replace T04_05_02__4 = 1 if T04_05_02_other=="para resolver o problemas escola do filho que estuda numa outra província"
replace T04_05_02__4 = 1 if T04_05_02_other=="por participar de uma actividade familiar"
replace T04_05_02__4 = 1 if T04_05_02_other=="Preocupação Familiar"
replace T04_05_02__7 = 1 if T04_05_02_other=="Estagio pedagógico"
replace T04_05_02__7 = 1 if T04_05_02_other=="Estava na formação"
replace T04_05_02__7 = 1 if T04_05_02_other=="Excursão"
replace T04_05_02__7 = 1 if T04_05_02_other=="defesa de licenciatura"
replace T04_05_02__7 = 1 if T04_05_02_other=="Deu aulas no ISCED como estagiaria."
replace T04_05_02__7 = 1 if T04_05_02_other=="foi fazer prova na faculdade"
replace T04_05_02__7 = 1 if T04_05_02_other=="Ia fazer prova na faculdade"
replace T04_05_02__7 = 1 if T04_05_02_other=="Motivo de Estágio"
replace T04_05_02__7 = 1 if T04_05_02_other=="Trabalho de fim de curso"
replace T04_05_02__8 = 1 if T04_05_02_other=="actividades escolares"
replace T04_05_02__8 = 1 if T04_05_02_other=="Concurso público"
replace T04_05_02__8 = 1 if T04_05_02_other=="concurso público da educação"
replace T04_05_02__8 = 1 if T04_05_02_other=="Faltou por motivo de regularizar o termo de início de função"
replace T04_05_02__8 = 1 if T04_05_02_other=="Havia saído para o concurso da educação"
replace T04_05_02__8 = 1 if T04_05_02_other=="Ia fazer a prova do concurso da educação"
replace T04_05_02__8 = 1 if T04_05_02_other=="jornada científica"
replace T04_05_02__8 = 1 if T04_05_02_other=="Reuniaõ na Escola"
replace T04_05_02__8 = 1 if T04_05_02_other=="Reunião na repartição Municipal"
replace T04_05_02__11 = 1 if T04_05_02_other=="avaria da moto"
replace T04_05_02__11 = 1 if T04_05_02_other=="Avaria do meio de trasnporte"
replace T04_05_02__11 = 1 if T04_05_02_other=="Avaria no meio de transporte"
replace T04_05_02__11 = 1 if T04_05_02_other=="Avariou A Motorizada"
replace T04_05_02__11 = 1 if T04_05_02_other=="Não havia transporte"
replace T04_05_02__11 = 1 if T04_05_02_other=="O meio de transporte avariada"
replace T04_05_02__13 = 1 if T04_05_02_other=="Dia do peso com o bebe"
replace T04_05_02__13 = 1 if T04_05_02_other=="Fui ão peso com a criança"
replace T04_05_02__13 = 1 if T04_05_02_other=="Repouso pre e pós natal"
replace T04_05_02__12 = 1 if T04_05_02_other=="estava numa actividade religiosa"
replace T04_05_02__12 = 1 if T04_05_02_other=="Foi a um acampamento da igreja."
replace T04_05_02__12 = 1 if T04_05_02_other=="foi um encontro religioso"
replace T04_05_02__12 = 1 if T04_05_02_other=="O organização Partidária"
replace T04_05_02__12 = 1 if T04_05_02_other=="Reunião no Movimento Político"
replace T04_05_02__12 = 1 if T04_05_02_other=="Aniversário do professor"
replace T04_05_02__12 = 1 if T04_05_02_other=="Cansaço"
replace T04_05_02__12 = 1 if T04_05_02_other=="faltou por motivos pessoais( teste)"
replace T04_05_02__12 = 1 if T04_05_02_other=="Foi a consulta de gestante."
replace T04_05_02__12 = 1 if T04_05_02_other=="por causa de seu aniversário"
replace T04_05_02__12 = 1 if T04_05_02_other=="Trar bilhete"
replace T04_05_02__12 = 1 if T04_05_02_other=="Tratar o Bilhete de Identidade"
replace T04_05_02__12 = 1 if T04_05_02_other=="tratar o cartão multicaixa"

replace T04_06_04 = T04_06_04+T04_06_12_old if T04_05_02_other=="Assalto"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Assuntos Familiares"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Campa da sogra"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Campa de um familiar"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Casamento"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Casamento"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Casamento de um irmão, fora da província."
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Casamento do irmão do pai"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="casamentos"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="foi ao casamento"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Foi assistir a defesa de um irmão"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Foi visitar a família."
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Ida a Escola de sua educanda"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="para participar de um casamento"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="para resolver o problemas escola do filho que estuda numa outra província"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="por participar de uma actividade familiar"
replace T04_06_04 = T04_06_12_old if T04_05_02_other=="Preocupação Familiar"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Estagio pedagógico"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Estava na formação"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Excursão"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="defesa de licenciatura"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Deu aulas no ISCED como estagiaria."
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="foi fazer prova na faculdade"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Ia fazer prova na faculdade"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Motivo de Estágio"
replace T04_06_07 = T04_06_12_old if T04_05_02_other=="Trabalho de fim de curso"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="actividades escolares"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Concurso público"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="concurso público da educação"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Faltou por motivo de regularizar o termo de início de função"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Havia saído para o concurso da educação"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Ia fazer a prova do concurso da educação"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="jornada científica"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Reuniaõ na Escola"
replace T04_06_08 = T04_06_12_old if T04_05_02_other=="Reunião na repartição Municipal"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="avaria da moto"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="Avaria do meio de trasnporte"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="Avaria no meio de transporte"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="Avariou A Motorizada"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="Não havia transporte"
replace T04_06_11 = T04_06_12_old if T04_05_02_other=="O meio de transporte avariada"
replace T04_06_13 = T04_06_12_old if T04_05_02_other=="Dia do peso com o bebe"
replace T04_06_13 = T04_06_12_old if T04_05_02_other=="Fui ão peso com a criança"
replace T04_06_13 = T04_06_12_old if T04_05_02_other=="Repouso pre e pós natal"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="estava numa actividade religiosa"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Foi a um acampamento da igreja."
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="foi um encontro religioso"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="O organização Partidária"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Reunião no Movimento Político"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Aniversário do professor"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Cansaço"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="faltou por motivos pessoais( teste)"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Foi a consulta de gestante."
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="por causa de seu aniversário"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Trar bilhete"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="Tratar o Bilhete de Identidade"
replace T04_06_12 = T04_06_12_old if T04_05_02_other=="tratar o cartão multicaixa"

replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Assuntos Familiares"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Campa da sogra"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Campa de um familiar"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Casamento"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Casamento"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Casamento de um irmão, fora da província."
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Casamento do irmão do pai"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="casamentos"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="foi ao casamento"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Foi assistir a defesa de um irmão"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Foi visitar a família."
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Ida a Escola de sua educanda"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="para participar de um casamento"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="para resolver o problemas escola do filho que estuda numa outra província"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="por participar de uma actividade familiar"
replace T04_07_04 = T04_07_12_old if T04_05_02_other=="Preocupação Familiar"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Estagio pedagógico"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Estava na formação"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Excursão"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="defesa de licenciatura"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Deu aulas no ISCED como estagiaria."
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="foi fazer prova na faculdade"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Ia fazer prova na faculdade"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Motivo de Estágio"
replace T04_07_07 = T04_07_12_old if T04_05_02_other=="Trabalho de fim de curso"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="actividades escolares"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Concurso público"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="concurso público da educação"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Faltou por motivo de regularizar o termo de início de função"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Havia saído para o concurso da educação"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Ia fazer a prova do concurso da educação"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="jornada científica"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Reuniaõ na Escola"
replace T04_07_08 = T04_07_12_old if T04_05_02_other=="Reunião na repartição Municipal"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="avaria da moto"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="Avaria do meio de trasnporte"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="Avaria no meio de transporte"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="Avariou A Motorizada"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="Não havia transporte"
replace T04_07_11 = T04_07_12_old if T04_05_02_other=="O meio de transporte avariada"
replace T04_07_13 = T04_07_12_old if T04_05_02_other=="Dia do peso com o bebe"
replace T04_07_13 = T04_07_12_old if T04_05_02_other=="Fui ão peso com a criança"
replace T04_07_13 = T04_07_12_old if T04_05_02_other=="Repouso pre e pós natal"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="estava numa actividade religiosa"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Foi a um acampamento da igreja."
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="foi um encontro religioso"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="O organização Partidária"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Reunião no Movimento Político"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Aniversário do professor"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Cansaço"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="faltou por motivos pessoais( teste)"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Foi a consulta de gestante."
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="por causa de seu aniversário"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Trar bilhete"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="Tratar o Bilhete de Identidade"
replace T04_07_12 = T04_07_12_old if T04_05_02_other=="tratar o cartão multicaixa"

label variable T04_05_02__1 `"(last2weeks) Teacher was absent due to own sickness"'
label variable T04_05_02__2 `"(last2weeks) Teacher was absent due to family member sickness"'
label variable T04_05_02__3 `"(last2weeks) Teacher was absent due to death family/friend"'
label variable T04_05_02__4 `"(last2weeks) Teacher was absent due to other family emergency (+ weddings)"'
label variable T04_05_02__5 `"(last2weeks) Teacher was absent due to salary day (travel to muni center)"'
label variable T04_05_02__6 `"(last2weeks) Teacher was absent due to purchase of school resources"'
label variable T04_05_02__7 `"(last2weeks) Teacher was absent due to workshop"'
label variable T04_05_02__8 `"(last2weeks) Teacher was absent due to other reason related to teaching"'
label variable T04_05_02__9 `"(last2weeks) Teacher was absent due to second professional activity"'
label variable T04_05_02__10 `"(last2weeks) Teacher was absent due to rain"'
label variable T04_05_02__11 `"(last2weeks) Teacher was absent due to lack of transportation"'
label variable T04_05_02__12 `"(last2weeks) Teacher was absent due to personal reasons"'
label variable T04_05_02__13 `"(last2weeks) Teacher was absent due to child birth related topics"'

lab val  T04_05_02__1 T04_05_02__2 T04_05_02__3 T04_05_02__4 T04_05_02__5 	///
			T04_05_02__6 T04_05_02__7 T04_05_02__8 T04_05_02__9 			///
			T04_05_02__10 T04_05_02__11 T04_05_02__12 T04_05_02__13 dummy

label variable T04_06_01 `"(last2weeks) Days absent due to own sickness"'
label variable T04_06_02 `"(last2weeks) Days absent due to family member sickness"'
label variable T04_06_03 `"(last2weeks) Days absent due to death family/friend"'
label variable T04_06_04 `"(last2weeks) Days absent due to other domestic/family emergency (including weddings)"'
label variable T04_06_05 `"(last2weeks) Days absent due to salary day (travel to municipality center)"'
label variable T04_06_06 `"(last2weeks) Days absent due to purchase of school resources"'
label variable T04_06_07 `"(last2weeks) Days absent due to workshop"'
label variable T04_06_08 `"(last2weeks) Days absent due to other reason related to teaching"'
label variable T04_06_09 `"(last2weeks) Days absent due to second professional activity"'
label variable T04_06_10 `"(last2weeks) Days absent due to rain"'
label variable T04_06_11 `"(last2weeks) Days absent due to lack of transportation"'
label variable T04_06_12 `"(last2weeks) Days absent due to personal reasons"'
label variable T04_06_13 `"(last2weeks) Days absent due to child birth related topics"'

foreach var in T04_06_01 T04_06_02 T04_06_03 T04_06_04 T04_06_05 T04_06_06 ///
	T04_06_07 T04_06_08 T04_06_09 T04_06_10 T04_06_11 T04_06_12 T04_06_13{
		replace `var' = 10 if `var'>10 & `var'!=.
}

label variable T04_07_01 `"(last2weeks) Notification given of absence due to own sickness"'
label variable T04_07_02 `"(last2weeks) Notification given of absence due family member sickness"'
label variable T04_07_03 `"(last2weeks) Notification given of absence due to death family/friend"'
label variable T04_07_04 `"(last2weeks) Notification given of absence due to other domestic/family emergency (including weddings)"'
label variable T04_07_05 `"(last2weeks) Notification given of absence due to salary day (travel to municipality center)"'
label variable T04_07_06 `"(last2weeks) Notification given of absence due to purchase of school resources"'
label variable T04_07_07 `"(last2weeks) Notification given of absence due to workshop"'
label variable T04_07_08 `"(last2weeks) Notification given of absence due to other reason related to teaching"'
label variable T04_07_09 `"(last2weeks) Notification given of absence due to second professional activity"'
label variable T04_07_10 `"(last2weeks) Notification given of absence due to rain"'
label variable T04_07_11 `"(last2weeks) Notification given of absence due to lack of transportation"'
label variable T04_07_12 `"(last2weeks) Notification given of absence due to personal reasons"'
label variable T04_07_13 `"(last2weeks) Notification given of absence due to child birth related topics"'

lab val T04_07_01 T04_07_02 T04_07_03 T04_07_04 T04_07_05 T04_07_06 		///
	T04_07_07 T04_07_08 T04_07_09 T04_07_10 T04_07_11 T04_07_12 T04_07_13 dummy

drop T04_05_02__12_old T04_05_02_other T04_06_12_old T04_07_12_old


replace T04_08_01 = . if inlist(T04_08_01,99,9999)
label variable T04_08_01 `"Days absence in November 2017"'
replace T04_08_01 = 30 if T04_08_01>30 & T04_08_01!=.

rename T04_08_02__12 T04_08_02__12_old
rename T04_09_12 T04_09_12_old
rename T04_10_12 T04_10_12_old

gen T04_08_02__12 = 0 if T04_08_02__1!=.
gen T04_08_02__13 = 0 if T04_08_02__1!=.
gen T04_09_12 = .
gen T04_09_13 = .
gen T04_10_12 = .
gen T04_10_13 = .

order T04_08_02__12 T04_08_02__13, after(T04_08_02__11)
order T04_09_11 T04_10_11 T04_09_12 T04_10_12 T04_09_13 T04_10_13, after(T04_10_10)

replace T04_08_01 = 0 if T04_08_02_other=="não tem como ter faltado por ser o primeiro ano a estagiar nesta escola"



replace T04_08_02__1 = 1 if T04_08_02_other=="Repouso Medico"
replace T04_08_02__7 = 1 if T04_08_02_other=="esta fazer prova na faculdade"
replace T04_08_02__7 = 1 if T04_08_02_other=="estava estudar"
replace T04_08_02__7 = 1 if T04_08_02_other=="Estava estudar e em época de prova"
replace T04_08_02__7 = 1 if T04_08_02_other=="Por estar a estudar"
replace T04_08_02__7 = 1 if T04_08_02_other=="Preparação da defesa do fim do curso"
replace T04_08_02__11 = 1 if T04_08_02_other=="Falta de transporte"
replace T04_08_02__12 = 1 if T04_08_02_other=="Dia do seu aniversário"
replace T04_08_02__12 = 1 if T04_08_02_other=="Preguiça"
replace T04_08_02__13 = 1 if T04_08_02_other=="Repouso pôs natal"
replace T04_08_02__13 = 1 if T04_08_02_other=="foi ao pediatra com o bebé"
replace T04_08_02__13 = 1 if T04_08_02_other=="Julgamento do Filho"
replace T04_08_02__13 = 1 if T04_08_02_other=="Peso"
replace T04_08_02__13 = 1 if T04_08_02_other=="Peso do Bebe"
replace T04_08_02__13 = 1 if T04_08_02_other=="Estava de repouso pós parto"
replace T04_08_02__13 = 1 if T04_08_02_other=="Repouso maternal"
replace T04_08_02__13 = 1 if T04_08_02_other=="Esteve de repousou pôs natal"
replace T04_08_02__13 = 1 if T04_08_02_other=="repouso pos parto"
replace T04_08_02__13 = 1 if T04_08_02_other=="repouso pre natal"
replace T04_08_02__13 = 1 if T04_08_02_other=="Repouso pré natal"



replace T04_09_01 = T04_09_12_old if T04_08_02_other=="Repouso Medico"
replace T04_09_07 = T04_09_12_old if T04_08_02_other=="esta fazer prova na faculdade"
replace T04_09_07 = T04_09_12_old if T04_08_02_other=="estava estudar"
replace T04_09_07 = T04_09_12_old if T04_08_02_other=="Estava estudar e em época de prova"
replace T04_09_07 = T04_09_12_old if T04_08_02_other=="Por estar a estudar"
replace T04_09_07 = T04_09_12_old if T04_08_02_other=="Preparação da defesa do fim do curso"
replace T04_09_11 = T04_09_12_old if T04_08_02_other=="Falta de transporte"
replace T04_09_12 = T04_09_12_old if T04_08_02_other=="Dia do seu aniversário"
replace T04_09_12 = T04_09_12_old if T04_08_02_other=="Preguiça"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Repouso pôs natal"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="foi ao pediatra com o bebé"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Julgamento do Filho"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Peso"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Peso do Bebe"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Estava de repouso pós parto"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Repouso maternal"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Esteve de repousou pôs natal"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="repouso pos parto"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="repouso pre natal"
replace T04_09_13 = T04_09_12_old if T04_08_02_other=="Repouso pré natal"

replace T04_10_01 = T04_10_12_old if T04_08_02_other=="Repouso Medico"
replace T04_10_07 = T04_10_12_old if T04_08_02_other=="esta fazer prova na faculdade"
replace T04_10_07 = T04_10_12_old if T04_08_02_other=="estava estudar"
replace T04_10_07 = T04_10_12_old if T04_08_02_other=="Estava estudar e em época de prova"
replace T04_10_07 = T04_10_12_old if T04_08_02_other=="Por estar a estudar"
replace T04_10_07 = T04_10_12_old if T04_08_02_other=="Preparação da defesa do fim do curso"
replace T04_10_11 = T04_10_12_old if T04_08_02_other=="Falta de transporte"
replace T04_10_12 = T04_10_12_old if T04_08_02_other=="Dia do seu aniversário"
replace T04_10_12 = T04_10_12_old if T04_08_02_other=="Preguiça"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Repouso pôs natal"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="foi ao pediatra com o bebé"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Julgamento do Filho"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Peso"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Peso do Bebe"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Estava de repouso pós parto"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Repouso maternal"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Esteve de repousou pôs natal"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="repouso pos parto"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="repouso pre natal"
replace T04_10_13 = T04_10_12_old if T04_08_02_other=="Repouso pré natal"


label variable T04_08_02__1 `"(nov17) Teacher was absent due to own sickness"'
label variable T04_08_02__2 `"(nov17) Teacher was absent due to family member sickness"'
label variable T04_08_02__3 `"(nov17) Teacher was absent due to death family/friend"'
label variable T04_08_02__4 `"(nov17) Teacher was absent due to other domestic/family emergency (including weddings)"'
label variable T04_08_02__5 `"(nov17) Teacher was absent due to salary day (travel to municipality center)"'
label variable T04_08_02__6 `"(nov17) Teacher was absent due to purchase of school resources"'
label variable T04_08_02__7 `"(nov17) Teacher was absent due to workshop"'
label variable T04_08_02__8 `"(nov17) Teacher was absent due to other reason related to teaching"'
label variable T04_08_02__9 `"(nov17) Teacher was absent due to second professional activity"'
label variable T04_08_02__10 `"(nov17) Teacher was absent due to rain"'
label variable T04_08_02__11 `"(nov17) Teacher was absent due to lack of transportation"'
label variable T04_08_02__12 `"(nov17) Teacher was absent due to personal reasons"'
label variable T04_08_02__13 `"(nov17) Teacher was absent due to child birth related topics"'

lab val  T04_08_02__1 T04_08_02__2 T04_08_02__3 T04_08_02__4 T04_08_02__5 	///
			T04_08_02__6 T04_08_02__7 T04_08_02__8 T04_08_02__9 			///
			T04_08_02__10 T04_08_02__11 T04_08_02__12 T04_08_02__13 dummy

label variable T04_09_01 `"(nov17) Days absent due to own sickness"'
label variable T04_09_02 `"(nov17) Days absent due to family member sickness"'
label variable T04_09_03 `"(nov17) Days absent due to death family/friend"'
label variable T04_09_04 `"(nov17) Days absent due to other domestic/family emergency (including weddings)"'
label variable T04_09_05 `"(nov17) Days absent due to salary day (travel to municipality center)"'
label variable T04_09_06 `"(nov17) Days absent due to purchase of school resources"'
label variable T04_09_07 `"(nov17) Days absent due to workshop"'
label variable T04_09_08 `"(nov17) Days absent due to other reason related to teaching"'
label variable T04_09_09 `"(nov17) Days absent due to second professional activity"'
label variable T04_09_10 `"(nov17) Days absent due to rain"'
label variable T04_09_11 `"(nov17) Days absent due to lack of transportation"'
label variable T04_09_12 `"(nov17) Days absent due to personal reasons"'
label variable T04_09_13 `"(nov17) Days absent due to child birth related topics"'

foreach var in T04_09_01 T04_09_02 T04_09_03 T04_09_04 T04_09_05 T04_09_06 ///
	T04_09_07 T04_09_08 T04_09_09 T04_09_10 T04_09_11 T04_09_12 T04_09_13{
		replace `var' = 30 if `var'>30 & `var'!=.
}

label variable T04_10_01 `"(nov17) Notification given of absence due to own sickness"'
label variable T04_10_02 `"(nov17) Notification given of absence due family member sickness"'
label variable T04_10_03 `"(nov17) Notification given of absence due to death family/friend"'
label variable T04_10_04 `"(nov17) Notification given of absence due to other domestic/family emergency (including weddings)"'
label variable T04_10_05 `"(nov17) Notification given of absence due to salary day (travel to municipality center)"'
label variable T04_10_06 `"(nov17) Notification given of absence due to purchase of school resources"'
label variable T04_10_07 `"(nov17) Notification given of absence due to workshop"'
label variable T04_10_08 `"(nov17) Notification given of absence due to other reason related to teaching"'
label variable T04_10_09 `"(nov17) Notification given of absence due to second professional activity"'
label variable T04_10_10 `"(nov17) Notification given of absence due to rain"'
label variable T04_10_11 `"(nov17) Notification given of absence due to lack of transportation"'
label variable T04_10_12 `"(nov17) Notification given of absence due to personal reasons"'
label variable T04_10_13 `"(nov17) Notification given of absence due to child birth related topics"'

lab val T04_10_01 T04_10_02 T04_10_03 T04_10_04 T04_10_05 T04_10_06 		///
	T04_10_07 T04_10_08 T04_10_09 T04_10_10 T04_10_11 T04_10_12 T04_10_13 dummy

drop T04_08_02__12_old T04_08_02__999 T04_08_02__0 T04_08_02_other T04_09_12_old T04_10_12_old

********************************************************************************

********************************************************************************

* Section 5 (P4 / T5 / D7)

// labelssss

#delimit ;
;
label define problem
0 `"Not a problem"'
1 `"Small problem"'
2 `"Average problem"'
3 `"Big problem"'
;
#delimit cr

foreach var in  T05_01__0 T05_01__1 T05_01__2 T05_01__3 T05_01__4 			///
	T05_01__5 T05_01__6 T05_01__7 T05_01__8 T05_01__9 T05_01__10 			///
	T05_01__11 T05_01__12 T05_01__13 T05_01__14 T05_01__15 T05_01__16 		///
	T05_01__17 T05_01__18 T05_01__19 T05_01__20 T05_01__21 T05_01__22 		///
	T05_01__999 T05_02__0 T05_02__1 T05_02__2 T05_02__3 T05_02__4 			///
	T05_02__5 T05_02__6 T05_02__7 T05_02__8 T05_02__9 T05_02__10 			///
	T05_02__11 T05_02__12 T05_02__13 T05_02__14 T05_02__15 T05_02__16 		///
	T05_02__17 T05_02__18 T05_02__19 T05_02__20 T05_02__21 T05_02__22 		///
	T05_02__23 T05_02__24 T05_02__25 T05_02__26 T05_02__27 T05_02__28 		///
	T05_02__29 T05_02__30 T05_02__31 T05_02__999 T05_03 T05_04 T05_05 		///
	T05_06 T05_07 T05_08 T05_09 T05_10 T05_11 T05_12 T05_13 T05_14 			///
	T05_15 T05_16 T05_17 T05_18 T05_19 T05_20 T05_21 T05_22 T05_23 			///
	T05_24 T05_25 T05_26 T05_27 T05_28 T05_29 T05_30 T05_31 T05_32 T05_33{
		replace `var' = . if inlist(`var',999,-999999999)
}

rename T05_01__22 T05_01__22_old

gen T05_01__22 = 0 if T05_01__1!=.
gen T05_01__23 = 0 if T05_01__1!=.
gen T05_01__24 = 0 if T05_01__1!=.
gen T05_01__25 = 0 if T05_01__1!=.

order T05_01__22 T05_01__23 T05_01__24 T05_01__25, after(T05_01__21)

replace T05_01__1 = T05_01__22_old if T05_01_other=="montaram gradeamentos nas janelas" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Reconstrução das carteiras e salas de aula" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Reconstrução das salas de carácter provisório" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Renovação de alguns tetos das salas de aulas" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="reparação das salas de aulas e pintura" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Retiraram das salas de chapa" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Salas de aulas adaptadas" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="colocaram chão nas salas de aula e melhorou a cobertura do tecto e melhorou a vedação do muro" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="remodelaram algumas salas ,reparação do teto do gabinete" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Colocaram novo tecto na escola. colocaram as fechaduras. E voltaram a pintar a escola." & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Colocarsm novas portas." & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Comparou-se novas portas e janelas" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Compra de  quadros novo e pintura da escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Elevação da escola como complexo" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="fez-se novas portas para algumas turmas por parte dos pais" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="meteram chão nas salas de aula" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Mudaram a cobertura da escola, Construíram um chafariz de água" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Novas pinturas a escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Passeios,pintura..." & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintar a escola, venceram o carnaval" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Pintaram a escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintaram a escola e meteram o mosaico" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintaram e trocaram as fechaduras" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintura da escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Pintura da escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Pintura da escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintura e boa apertura" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Pinturas e reparação dos cabos eléctricos...." & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Renovaram a pintura da escola" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Só a Mudança do Teto" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="Teto e chafariz" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="tiveram capacitação financiando pelo banco mundial" & T05_01__1 == 0
replace T05_01__1 = T05_01__22_old if T05_01_other=="pintura das salas,  electricidade" & T05_01__1 == 0
replace T05_01__2 = T05_01__22_old if T05_01_other=="aumentou as salas de chapa" & T05_01__2 == 0
replace T05_01__2 = T05_01__22_old if T05_01_other=="construcao das salas para a iniciacao." & T05_01__2 == 0
replace T05_01__2 = T05_01__22_old if T05_01_other=="Duas Salas de Informática do Projecto Meu camba." & T05_01__2 == 0
replace T05_01__2 = T05_01__22_old if T05_01_other=="trabalham em salas anexas." & T05_01__2 == 0
replace T05_01__2 = T05_01__22_old if T05_01_other=="usa-se igrejas para dar aula por falta de escola" & T05_01__2 == 0
replace T05_01__3 = T05_01__22_old if T05_01_other=="tem ajudado a comunidade no saneamento básico" & T05_01__3 == 0
replace T05_01__5 = T05_01__22_old if T05_01_other=="colocaram chão nas salas de aula e melhorou a cobertura do tecto e melhorou a vedação do muro" & T05_01__5 == 0
replace T05_01__5 = T05_01__22_old if T05_01_other=="Arborização" & T05_01__5 == 0
replace T05_01__5 = T05_01__22_old if T05_01_other=="colocaram aparelho de ar condicionado nas turmas do director e subdiretor" & T05_01__5 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="remodelaram algumas salas ,reparação do teto do gabinete" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="compra de um terreno" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção da arrecadação" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção da casa dos professores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="construção de casa dos professores e cozinha" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção de tanque de água" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção de um gabinete" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção de um Gabinete" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Construção de uma casa para os professores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="construção de uma sala de professores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="construíram um gabinete" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="conteiro de plantas. trouxeram brita num enc. de boa fe." & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Emplementamos  jardins nas escolas" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="jardim e Melhoria do patio" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Meios de ensino..." & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Melhoraram o Gabinete do Director  e  secretária" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="melhoraram o Gabinete do director e jardinagem" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="plantação de árvores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="plantar árvores e fazer campanha ao rio" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Plantaram árvores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Reparação do Muro da escola" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Residência dos Professores" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="vedação" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="vedação dos muros" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Vedamos o Quintal da escola" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="A vedação do murro e o desempenho da equipa da escola" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="vedação do muro, construção de novas salas" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="vedação dos muros e nova pintura" & T05_01__6 == 0
replace T05_01__6 = T05_01__22_old if T05_01_other=="Pintura e construção da sala dos professores...." & T05_01__6 == 0
replace T05_01__7 = T05_01__22_old if T05_01_other=="reconstruíram as calteriras" & T05_01__7 == 0
replace T05_01__7 = T05_01__22_old if T05_01_other=="Reparou-se algumas carteiras" & T05_01__7 == 0
replace T05_01__7 = T05_01__22_old if T05_01_other=="Reconstruiram carteiras e fizeram novas carteiras" & T05_01__7 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="A recepção de carteiras novas...." & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="aumento de carteiras...." & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="casa para os professores" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="compra de carteiras" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="compraram 6 portas" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="Compras de aparelhos som e ares condicionados" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="compras de novos quadros" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="Confeccionamento de carteiras para duas salas de aulas" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="Entrega de carteira pela direção municipal do Ebo" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="fizeram a vedação dos muros e as salas dos professores" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="fornecimento do material escolar" & T05_01__8 == 0
replace T05_01__8 = T05_01__22_old if T05_01_other=="Compra de computadores pra a escola" & T05_01__8 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="actividades extra curriculares" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Actividades extras melhorarar e as relações humanas com colegas" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Actividade nas Escola" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="as actividades, e a escucão" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Campeonato intermunicipal" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="implementarão jornada científica," & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Melhou o projecto meu camba, melhou tbem o projecto Pat" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Melhou o projecto p.A.T que significa aprendizagem para todos" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Olimpiadas de Matemática" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Participação das olimpíadas na disciplina fe matemática" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="participação dos alunos nas olimpiadas" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Projecto Camba" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Realização da Olimpíada do saber" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other==", Comemoração do dias Crianças" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="comemoração do aniversário da escola" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Comemoração do dia da Criança" & T05_01__9 == 0
replace T05_01__9 = T05_01__22_old if T05_01_other=="Data comemorativa Julho" & T05_01__9 == 0
replace T05_01__12 = T05_01__22_old if T05_01_other=="A presença dos  alunos na escola" & T05_01__12 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="melhoria da relaçao om os alunos" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Melhorou o Método de Ensino" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Método de ensino" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Criação de palestras e aulas de incursões" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Encontros  da Zip zona de influência pedagógica" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Foi escolhida para a formação do P.A.T" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Formação aos Professores" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Formação be entrega de diplomas" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Formação do projecto meu camba" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="formação dos professores" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Formação que a escola deu pelo os professor" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="formações para professores" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Melhou alguns método de ensino, isto é tdos professores qdo estão de pausa, tenhem o direito a siminarios" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Orientou professores para seminários" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="os colegas têm recebido formação periódico" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Palestras" & T05_01__14 == 0
replace T05_01__14 = T05_01__22_old if T05_01_other=="Seminários de capacitação de professores, Donativo a um lar da 3ª idade, Doação de sangue" & T05_01__14 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="A valorização da actividade de professor através do reconhecimento na comemoração do dia do educador" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Ajuda dos professoes estagiário" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Ajuda mútua entre colegas." & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Ha facilidade comunicação" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Melhoria da relação com os colegas e a direção da escola" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Melhorou a relação entre os professores" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="Melrorou a relação entre professores" & T05_01__16 == 0
replace T05_01__16 = T05_01__22_old if T05_01_other=="recebeu o presente no dia do educador" & T05_01__16 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="A troca do director" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Acompanhamento sistemático da direção da escola em relação aos professores" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Comportamento do diretor" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Contratação de novo diretor" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="interligação entre direção aos professores" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Melhorou o desempenho do Diretor" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Melhorou o funcionamento da secretaria" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Mudança do Direitor e Sub-Direitor" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Não tinham direitor e agora tem..." & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="O desempenho dos directores" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Organização Interna" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="tem tido reuniões periódicos e de concertação" & T05_01__17 == 0
replace T05_01__17 = T05_01__22_old if T05_01_other=="Visitas feitas por alguns membros da direção da educação" & T05_01__17 == 0
replace T05_01__18 = T05_01__22_old if T05_01_other=="Participação Dos  novos Estagiário (novos professores)" & T05_01__18 == 0
replace T05_01__18 = T05_01__22_old if T05_01_other=="rotatividade de professores e aumentou mas um professor" & T05_01__18 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="criação da comissão de pais e direção" & T05_01__19 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="Ganhou mais afeto dos encarregados" & T05_01__19 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="Melhorou a colaboracao dos encarregados." & T05_01__19 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="O envolvimento dos pais" & T05_01__19 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="participação dos Pais" & T05_01__19 == 0
replace T05_01__19 = T05_01__22_old if T05_01_other=="Obtenção dos alunos e mudança de mentalidade por parte dos pais" & T05_01__19 == 0
replace T05_01__21 = T05_01__22_old if T05_01_other=="A participação dos encarregados no pagamento do Guarda" & T05_01__21 == 0
replace T05_01__21 = T05_01__22_old if T05_01_other=="a segurança" & T05_01__21 == 0
replace T05_01__21 = T05_01__22_old if T05_01_other=="Controlo do nivel de delinquência" & T05_01__21 == 0
replace T05_01__21 = T05_01__22_old if T05_01_other=="Diminuiu a delinquência na escola" & T05_01__21 == 0
replace T05_01__22 = T05_01__22_old if T05_01_other=="Reconstrução de uma escola que estava peste a cair" & T05_01__22 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="pintura das salas,  electricidade" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Canalização de água e pintura da escola" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="A energia solar" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Colocação da energia electrica" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="eletricidade" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Energia" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Energia" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="energia eléctrica" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="energia eléctrica" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Energia eletrica" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Luz" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="luz na escola" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="painéis solares" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="painéis solares" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="placas solar (luz)" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Energia eléctrica, merenda escolar" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="A água na escola" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="A escola ja têm água" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="agua" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="agua" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Água" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="água" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="água" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Água portável" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Água." & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Colocação de recipiente de água para os alunos" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Instalaram placa solar" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Ligação da rede eléctrica" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Melhorou a eletricidade" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="melhorou as instalações eléctricas luz" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Melhorou o sistema de luz" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="montagem de Placa solar" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Canalizaram a agua e energia electrica." & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="água para o consumo" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="canalização da água" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="canalização de aguá" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Canalização de aguá" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Canalização e abastecimento de aguá." & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Já tem água tratada na escola" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="Restabelecimento da água potável" & T05_01__23 == 0
replace T05_01__23 = T05_01__22_old if T05_01_other=="água," & T05_01__23 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="A distribuição da merenda escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="A distribuição da merenda escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="dam merenda escolar aos estudantes" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="Implementação de merendas" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="lancha das crianças" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="Merenda escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="Merenda Escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="merenda escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="merenda escolar" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="Merenda escolar." & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="merendas escalares" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="Merendas escolares" & T05_01__24 == 0
replace T05_01__24 = T05_01__22_old if T05_01_other=="passaram a dar lanche aos alunos" & T05_01__24 == 0
replace T05_01__25 = T05_01__22_old if T05_01_other=="a escola ascendeu de primária para o primeiro ciclo" & T05_01__25 == 0
replace T05_01__25 = T05_01__22_old if T05_01_other=="Aumentou mais um ciclo, mais classes do ensino secundário" & T05_01__25 == 0
replace T05_01__25 = T05_01__22_old if T05_01_other=="Aumentou maisum nivel de ensino" & T05_01__25 == 0
replace T05_01__25 = T05_01__22_old if T05_01_other=="Aumentou o número de alunos" & T05_01__25 == 0

label variable T05_01__1 `"(ordered) Achievements: Improved classrooms"'
label variable T05_01__2 `"(ordered) Achievements: Build new classrooms"'
label variable T05_01__3 `"(ordered) Achievements: Improved bathrooms"'
label variable T05_01__4 `"(ordered) Achievements: Build new bathrooms"'
label variable T05_01__5 `"(ordered) Achievements: Improved other facilities (e.g.: field, fence, library)"'
label variable T05_01__6 `"(ordered) Achievements: Build new other facilities (e.g.: field, fence, library)"'
label variable T05_01__7 `"(ordered) Achievements: Improved school material and furniture"'
label variable T05_01__8 `"(ordered) Achievements: Bought new school material and furniture"'
label variable T05_01__9 `"(ordered) Achievements: Encouraged/organized extracurricular activities"'
label variable T05_01__10 `"(ordered) Achievements: Student test results improved"'
label variable T05_01__11 `"(ordered) Achievements: Overal student performance improved"'
label variable T05_01__12 `"(ordered) Achievements: Reducerd student absentism"'
label variable T05_01__13 `"(ordered) Achievements: Reducerd student drop-out rate"'
label variable T05_01__14 `"(ordered) Achievements: Teacher performance improved"'
label variable T05_01__15 `"(ordered) Achievements: Reducerd teacher absentism"'
label variable T05_01__16 `"(ordered) Achievements: Teacher conditions improved (salary, housing, transport)"'
label variable T05_01__17 `"(ordered) Achievements: Managment / Administration improved"'
label variable T05_01__18 `"(ordered) Achievements: Number of teachers increased"'
label variable T05_01__19 `"(ordered) Achievements: Parental involvement increased"'
label variable T05_01__20 `"(ordered) Achievements: Contracted cleaning staff"'
label variable T05_01__21 `"(ordered) Achievements: Contracted security staff"'
label variable T05_01__22 `"(ordered) Achievements: New school under construction"'
label variable T05_01__23 `"(ordered) Achievements: Water / electicity improvements"'
label variable T05_01__24 `"(ordered) Achievements: School meal offered at school"'
label variable T05_01__25 `"(ordered) Achievements: More grades offered at school"'

drop T05_01__0 T05_01__999 T05_01_other T05_01__22_old

rename T05_02__31 T05_02__31_old

gen T05_02__31 = 0 if T05_02__1!=.
gen T05_02__32 = 0 if T05_02__1!=.
gen T05_02__33 = 0 if T05_02__1!=.
gen T05_02__34 = 0 if T05_02__1!=.
gen T05_02__35 = 0 if T05_02__1!=.

order T05_02__31 T05_02__32 T05_02__33 T05_02__34 T05_02__35, after(T05_02__30)

replace T05_02__1 = T05_02__31_old if T05_02_other=="O Excesso de alunos na turma" & T05_02__1 == 0
replace T05_02__2 = T05_02__31_old if T05_02_other=="falta de mas salas para sair nas salas alugadas" & T05_02__2 == 0
replace T05_02__2 = T05_02__31_old if T05_02_other=="falta de salas" & T05_02__2 == 0
replace T05_02__3 = T05_02__31_old if T05_02_other=="Falta de Director" & T05_02__3 == 0
replace T05_02__3 = T05_02__31_old if T05_02_other=="Falta de Mais professores." & T05_02__3 == 0
replace T05_02__3 = T05_02__31_old if T05_02_other=="Falta de professores" & T05_02__3 == 0
replace T05_02__3 = T05_02__31_old if T05_02_other=="Falta de Professores" & T05_02__3 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="A estrutura em si,é feita de adobe e foi construída com esforço dos pais e encarregado de educação." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="A estrutura escolar" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="A estrutura no geral" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="A mal condições de algumas salas de aulas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="ar condicionado" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Aspecto físico da extrutura da escola; Falta de diálogo entre director e professores." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="cadiado nas portas." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Condições impropria  para o ensino...." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="condições precária da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de Nova Escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de nova escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de nova escola de raiz" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de novo escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de salas de raiz." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma escola de raiz. Transporte para os alunos" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma escola definitiva" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construcao de uma escola definitiva," & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de Uma escola nova, toda equipada" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma nova escola de raiz" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma nova escola, totalmente equipada. construção de residência para os professores" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma nova escola. Totalmente equipada" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Construção de uma nova escola. Transporte para os Docentes" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Continas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Enunudaxção das salas e salas muito quente" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Estrutura" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Estrutura da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Estrutura da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Estrutura de construção definitiva. Bem equipada" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Falta de AC" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="falta de Cobertura, janelas, portas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="falta de janelas e portas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="falta de janelas, portas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="falta de porta, janelas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="falta de portas e fechaduras" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Falta de portões" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Falta do ar condicionado" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Mal condições da sala de aula" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Mal condições das salas de aulas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Manutenções da Escola,Falta de papelaria" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Mau estado da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Mau estado de conservação da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="melhoramento de duas salas de aulas" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Melhoramentos das salas de aula, Vedação da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Melhorar a Infraestrutura da escola no geral" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="merenda escolar, gradeamento para janelas e portas, Quadros usados com marcadores." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="O mal Estado da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="O mal estado que a escola se apresenta" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="O mau estar das salas de aulas." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Péssima s condições de trabalho" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Pintura da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="portas sem fechadura" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Quando chove a escola inunda." & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Quando chove entra água" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Reabilitação da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="reabilitação da escola de forma geral" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Reabilitação da estrutura da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Reestruturar a escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Remodelação da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Reparação da escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="reparação das salas e janelas devido a época chuvosa" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Requalificação da Escola no geral" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Salas de Chapa" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Tecto danificado" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="tempo de chuva a problemas de acesso a escola" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="um aparelho de arcondicionado" & T05_02__4 == 0
replace T05_02__4 = T05_02__31_old if T05_02_other=="Uma escola de construção definitiva  e bem equipada" & T05_02__4 == 0
replace T05_02__5 = T05_02__31_old if T05_02_other=="melhorar o saneamento básico" & T05_02__5 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A construção de u! refeitório" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta da sala dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta da vedação do quintal" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta da vedação do quintal da escola e campos para educação física" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta da vedação e da pavimentação do Pátio da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A Falta de contina" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta de um campo multiuso" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta de vedação do quintal" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A falta do campo multiuso" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A residência dos professores está em más condições" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="A vedação do quintal" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Ausência de Pavimento no pátio" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Biblioteca em falta" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="campo para a fazer educação física" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="campos ulti usos" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="canalizar a agua, campo multiuso." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Casa para Professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="construção de sala de professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Construção de sala para os professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Construção de um campo multiuso" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="construção do Moro" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="construção e pavimentação do pátio da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Construir mas turmas, apetrechar-lhes e biblioteca" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Existe residência de professores mas não tem condições. Agradeceria se tivesse essas condições básicas" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de acomodação dos alunos e professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de bibliotecas" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de cantina escolar" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de Cantina Escolar" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de casa dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de cerco no quintal da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de espaço para educação física" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de local para educação física" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de parque de estacionamento" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de residência" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de residência para professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de sala de professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de sala de professores em condicoes ." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de sala de professores." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de sala para os professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de secretário" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de um campo para educação física" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de uma cantina escolar" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de uma escola de raiz e de qualidade" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de uma livraria" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de vedação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de vedação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de vedação do quintal" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de vedação do quintal" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta de vedação do quintal e da água" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Falta de vedação, falta de merenda escolar" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="falta uma sala de professores." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="mal condições nas residencias dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Merenda escolar e Salas de informática" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Merendas para às crianças e campo multiuso." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Morada para os profissionais" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Muro de vedação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="N tem salas dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Necessita de Um Jardim" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="pavimentação do chão" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Pavimentar a escola. e rebocar..." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Pavimentar o quintal da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residência dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residência em mau estado." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residência para os professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residência para os professores, Campo multiuso e uma escola de rais" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="residência para professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residência professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residências dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residências dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residências dos professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Residências para professores" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Sala dos Professor" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="vadação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="vedação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação da escola" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação danificada" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="vedação e campo multiusos" & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação escola ..." & T05_02__6 == 0
replace T05_02__6 = T05_02__31_old if T05_02_other=="Vedação na escola" & T05_02__6 == 0
replace T05_02__7 = T05_02__31_old if T05_02_other=="a questão da higiene dos alunos" & T05_02__7 == 0
replace T05_02__8 = T05_02__31_old if T05_02_other=="Atraso" & T05_02__8 == 0
replace T05_02__8 = T05_02__31_old if T05_02_other=="Atraso dos alunos" & T05_02__8 == 0
replace T05_02__8 = T05_02__31_old if T05_02_other=="O atrasos dos alunos" & T05_02__8 == 0
replace T05_02__9 = T05_02__31_old if T05_02_other=="os país tem influenciado os educandos para não ir a escola. lavam ao campo" & T05_02__9 == 0
replace T05_02__13 = T05_02__31_old if T05_02_other=="Comportamento em geral" & T05_02__13 == 0
replace T05_02__13 = T05_02__31_old if T05_02_other=="Comportamento negativo dos alunos" & T05_02__13 == 0
replace T05_02__13 = T05_02__31_old if T05_02_other=="falta de respeito por parte dos alunos" & T05_02__13 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="a falta de relação professor e encarregado de educação" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="A falta do envolvimento dos pais na escola" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="A falta do envolvimento dos país na escola" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="ausencia dos encarregados. Ha alunos que nao fazem tarefa." & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="Colaboração dos Encarregados de Educação" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="Encarregado não participativos," & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="falta de intereção entre professores e encarregados de educação" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="Falta de interesse dos encarregados para com os seus filhos" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="Não ha interesse por parte dos pais" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="o envolvimento dos pais encarregados de educação" & T05_02__14 == 0
replace T05_02__14 = T05_02__31_old if T05_02_other=="Pouca participação dos encarregados" & T05_02__14 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="A falta de acompanhamento da direção em relação aos professores" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Chefe de secretaria em falta" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="desempenho da direção da escola" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Desorganização da Escola" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Falta de condições administrativa" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Falta de organização na área administrativa;" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Fraca relação professores direção" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="melhorar a administração" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="Mudança do Corpo da Direcção" & T05_02__15 == 0
replace T05_02__15 = T05_02__31_old if T05_02_other=="O separatismo entre prof. e a direccao." & T05_02__15 == 0
replace T05_02__16 = T05_02__31_old if T05_02_other=="A pontualidade dos professores" & T05_02__16 == 0
replace T05_02__18 = T05_02__31_old if T05_02_other=="condições de trabalho, falta de transporte e residência de professores" & T05_02__18 == 0
replace T05_02__18 = T05_02__31_old if T05_02_other=="Falta de subsídios (atavio, isolamento e deslocação) e residencia" & T05_02__18 == 0
replace T05_02__18 = T05_02__31_old if T05_02_other=="Melhorar o salário da contina" & T05_02__18 == 0
replace T05_02__18 = T05_02__31_old if T05_02_other=="Refeitório para professores" & T05_02__18 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="Arrogância de alguns professores em lidar com o chefe, a afinidade" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="Conflito entre colegas" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="Conflito entre Professores" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="Fakta de união entre professores" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="falta de capacitação dos professores" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="falta de diálogo entre os professores" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="falta de seminario de capacitação  para os professores nas disciplina de expressão" & T05_02__19 == 0
replace T05_02__19 = T05_02__31_old if T05_02_other=="Mal comportamento por parte de alguns colegas" & T05_02__19 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="Carteiras" & T05_02__26 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="Desaparecimento de carteiras e cadeiras, e lâmpadas" & T05_02__26 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="Falta de Carteiras" & T05_02__26 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="Falta de uma fotocopiadora na Escola" & T05_02__26 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="mas mobílias e salas com aparelhos informáticos" & T05_02__26 == 0
replace T05_02__26 = T05_02__31_old if T05_02_other=="Quadro de giz." & T05_02__26 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="falta de de transporte, falta material escolar." & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="Falta de material didatico" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="falta de material escolar" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="giz" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="Material de apóio para as planificações" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="material de geometria para os alunos" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="materias desportivo" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="meios de ensino (quadro, giz)" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="Não tem computador" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="Qualidade do Giz, Falta de caderneta, Material didatico" & T05_02__27 == 0
replace T05_02__27 = T05_02__31_old if T05_02_other=="Recinto para Educação Física" & T05_02__27 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="assalto" & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="invasão dos moradores" & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="O vandalismo nas salas de aulas." & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="Os dois assaltos" & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="Roubo,," & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="vandalismo da juventude do bsirro" & T05_02__28 == 0
replace T05_02__28 = T05_02__31_old if T05_02_other=="Vanfalismo" & T05_02__28 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="A escola mete água" & T05_02__30 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="canalizar a agua, campo multiuso." & T05_02__30 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="Falha constante de água" & T05_02__30 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="Falta Água tirada" & T05_02__30 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="Falta de água canalizada, Falta de espaço de lazer" & T05_02__30 == 0
replace T05_02__30 = T05_02__31_old if T05_02_other=="Falta de posto médico próximo; falta de água potável; falta de merenda escolar" & T05_02__30 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="alimentação," & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Dar Merenda escolar aos Alunos" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Distância das moradias dos alunos,falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de me renda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar e uma cantina" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de Merenda Escolar, e custo alto de garantir uniformes" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="falta de merenda escolar." & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de merenda escolar." & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de posto médico próximo; falta de água potável; falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de transporte e merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Falta de vedação, falta de merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="merenda escolar" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar e Salas de informática" & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="merenda escolar, gradeamento para janelas e portas, Quadros usados com marcadores." & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merenda escolar, Transporte," & T05_02__31 == 0
replace T05_02__31 = T05_02__31_old if T05_02_other=="Merendas para às crianças e campo multiuso." & T05_02__31 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="A a proximidade da estrada tem vitimado alunos ao atravessa-,la" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="A distancia de casa para a escola." & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="A falta de Transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Barulho que as viaturas fazem uma vez quea estrada esta proximo a escola" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Defecação na sala. Má localizada geograficamente" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Distância das moradias dos alunos,falta de merenda escolar" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="distâncias percorridas pelos alunos" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="falta de de transporte, falta material escolar." & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de estrutura da escola, falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="falta de meio de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de ponte de condiciona as travessia de alunos" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de Transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de Transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte dos professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte e contratação do pessoal de limpezas" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte e merenda escolar" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte para os professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte pr os professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="falta de transporte," & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de Transporte, Falta de Refeitório" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de transporte, melhoria de via de acesso e residência" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="falta de transporte." & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta de Trsnsporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Falta Transportes" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="fslta de transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="localização da escola" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Meio de Transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Merenda escolar, Transporte," & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Os alunos andam longas distância" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Ravina extremamente perigosa" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="transporte" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Transporte escolar" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="transporte para os professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Transporte para os professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Transporte para os professores e Auxiliares de limpeza" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="transporte para professores" & T05_02__32 == 0
replace T05_02__32 = T05_02__31_old if T05_02_other=="Transportes Escolare" & T05_02__32 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Auxiliar de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Auxiliares de limpeza..." & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Contratação de empregada de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta auxiliar de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de auxiliar de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de auxiliares na escola" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="falta de empregada de Limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de Higiene na escola" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de Higiene na escola" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de Limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta de transporte e contratação do pessoal de limpezas" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta empregada de Limpeza." & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Falta fe auxiliar de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Fezes nas salas de aulas" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="higienização das salas  por falta de pessoal e material" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Limpeza." & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="lixo frente a escola" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Mas Empregados de Limpeza, E as avaliação dos Professores" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Materiais de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Pessoal de limpeza" & T05_02__34 == 0
replace T05_02__34 = T05_02__31_old if T05_02_other=="Pessoal de limpeza" & T05_02__34 == 0
replace T05_02__35 = T05_02__31_old if T05_02_other=="Passar a escola para outro ciclo...." & T05_02__35 == 0

label variable T05_02__1 `"(ordered) Problem: Too many students per class"'
label variable T05_02__2 `"(ordered) Problem: Not enough classrooms"'
label variable T05_02__3 `"(ordered) Problem: Not enough teachers"'
label variable T05_02__4 `"(ordered) Problem: Low quality of the classrooms (school in general)"'
label variable T05_02__5 `"(ordered) Problem: Low quality or missing bathrooms"'
label variable T05_02__6 `"(ordered) Problem: Low quality or missing other facilities"'
label variable T05_02__7 `"(ordered) Problem: Weak health of students"'
label variable T05_02__8 `"(ordered) Problem: Students not complying with the schedule"'
label variable T05_02__9 `"(ordered) Problem: Student absence"'
label variable T05_02__10 `"(ordered) Problem: High drop out rate of students"'
label variable T05_02__11 `"(ordered) Problem: Misconduct and physical conflicts between students"'
label variable T05_02__12 `"(ordered) Problem: Student empathy towards teachers"'
label variable T05_02__13 `"(ordered) Problem: Students disrespect towards teachers"'
label variable T05_02__14 `"(ordered) Problem: Lack of parent involvement"'
label variable T05_02__15 `"(ordered) Problem: Unpreparedness of school team"'
label variable T05_02__16 `"(ordered) Problem: Teachers not complying with the schedule"'
label variable T05_02__17 `"(ordered) Problem: Teacher absence"'
label variable T05_02__18 `"(ordered) Problem: Low teacher salary / conditions"'
label variable T05_02__19 `"(ordered) Problem: Low teacher performance"'
label variable T05_02__20 `"(ordered) Problem: Low teacher motivation"'
label variable T05_02__21 `"(ordered) Problem: Too small school budget"'
label variable T05_02__22 `"(ordered) Problem: Teachers give private classes"'
label variable T05_02__23 `"(ordered) Problem: High cost of school material"'
label variable T05_02__24 `"(ordered) Problem: Automatic transition to higher class in the end of the year"'
label variable T05_02__25 `"(ordered) Problem: Lack of extracurricular activities"'
label variable T05_02__26 `"(ordered) Problem: Lack of furniture"'
label variable T05_02__27 `"(ordered) Problem: Lack of school material"'
label variable T05_02__28 `"(ordered) Problem: Lack of security"'
label variable T05_02__29 `"(ordered) Problem: Lack of electricity and light"'
label variable T05_02__30 `"(ordered) Problem: Lack of water"'
label variable T05_02__31 `"(ordered) Problem: Lack of school meal"'
label variable T05_02__32 `"(ordered) Problem: School location (distance / no transport)"'
label variable T05_02__33 `"(ordered) Problem: School fee"'
label variable T05_02__34 `"(ordered) Problem: Lack of cleaning staff"'
label variable T05_02__35 `"(ordered) Problem: Lack of grades and night classes"'

drop T05_02__0 T05_02__31_old T05_02__999 T05_02_other

rename T05_33 T05_33_old

gen T05_33 = 0 if T05_33_old!=.
gen T05_34 = 0 if T05_33_old!=.
gen T05_35 = 0 if T05_33_old!=.
gen T05_36 = 0 if T05_33_old!=.

order T05_33 T05_34 T05_35 T05_36, after(T05_32)

replace T05_03 = 2 if T05_03==0 & T05_33_problem=="excesso de alunos na sala de aula"
replace T05_04 = 2 if T05_04==0 & T05_33_problem=="Reabilitação da infraestrutura e construção de novas salas"
replace T05_05 = 2 if T05_05==0 & T05_33_problem=="Falta de psicólogo"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Falta de condições das Salas de aula"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Melhoramento da qualidade das salas de aula"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Qualidade das salas de aula"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="janelas, portas, cobertura, chão em péssimas condições, casa de banho"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="A falta de janelas, porta e mobilia na sala de aula recém construida"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="A construção da escola"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="A Extrutura Escolar"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Construir uma escola de raiz. Porque se nao fosse os pais aqui não teria escola. Ate nos os professores passamos dia em pé por falta de cadeira"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Danificação da estrutura da escola"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Estado Estrutural é precária"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Falta do cuidado com o trabalho realizado pelos pais"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="Melhorar as condições da escola no geral porque quando chove é um desastre"
replace T05_06 = 2 if T05_06==0 & T05_33_problem=="reabilitação da escola e construção de mas escolas"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="As instalações sanitárias são insuficientes"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="Casa de Banho"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="Casas de Banho"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="Falta de casa de banho para os alunos"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="Falta de casa de banho para salas anexas"
replace T05_07 = 2 if T05_07==0 & T05_33_problem=="Casas de Bsnho, Salas pra Professores"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="A falta de vedação do quintal e mas construção de salas de aula"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Casas de Bsnho, Salas pra Professores"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="A falta de campo s multiuso"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Arêa no pátio da Escola"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Construção De muro"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Contentores para depósito de lixo"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="falta de biblioteca"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="falta de campos multiuso"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de condições na sala dos professores"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de condições nas residências dos professores e no gabinete do director"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de espaço para alunos estarem livre e sentarem-se a vontade"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="falta de espaço para aulas de educação física"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="falta de jardim, vedação da escola"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de passadera"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de quintal e campo para prática de educação física."
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de Refeitório"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta de uma vedação na escola"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Falta habitação para os professores"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="jardim"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="muro de vedação"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Murro de vedação"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Vedação de muro da escola"
replace T05_08 = 2 if T05_08==0 & T05_33_problem=="Jardim escolar, vedação e Materiais Suficientes."
replace T05_11 = 2 if T05_11==0 & T05_33_problem=="Ausencia dos alunos"
replace T05_11 = 2 if T05_11==0 & T05_33_problem=="Falta dos alunos por motivo de óbito"
replace T05_16 = 2 if T05_16==0 & T05_33_problem=="Falta de interacção entre os professores e encarregado de educação"
replace T05_20 = 2 if T05_20==0 & T05_33_problem=="ter transporte e aumentar no salário ou subsídio"
replace T05_28 = 2 if T05_28==0 & T05_33_problem=="Falta de Carteira"
replace T05_29 = 2 if T05_29==0 & T05_33_problem=="Jardim escolar, vedação e Materiais Suficientes."
replace T05_29 = 2 if T05_29==0 & T05_33_problem=="tem faltado materias administrativo"
replace T05_29 = 2 if T05_29==0 & T05_33_problem=="falte de computador para escola"
replace T05_33 = 2 if T05_33==0 & T05_33_problem=="A falta da merenda escolar"
replace T05_33 = 2 if T05_33==0 & T05_33_problem=="Falta de Merenda escolar dos Alunos"
replace T05_33 = 2 if T05_33==0 & T05_33_problem=="Merenda Escolar"
replace T05_33 = 2 if T05_33==0 & T05_33_problem=="Merenda Escolar"
replace T05_34 = 2 if T05_34==0 & T05_33_problem=="Fala de transporte para os professores"
replace T05_34 = 2 if T05_34==0 & T05_33_problem=="Falta de transporte aos professores"
replace T05_34 = 2 if T05_34==0 & T05_33_problem=="falta transporte  falta de consideração"
replace T05_34 = 2 if T05_34==0 & T05_33_problem=="Transporte Para os Professores."
replace T05_34 = 2 if T05_34==0 & T05_33_problem=="ter transporte e aumentar no salário ou subsídio"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Falta de Higiene"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="A falta de auxiliar de limpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Empregada de limpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Falta de auxiliar de limpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Falta de auxiliar de limpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Falta de Auxiliar de Lumpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="falta de empregada de limpeza"
replace T05_35 = 2 if T05_35==0 & T05_33_problem=="Falta do pessoal da limpeza"
replace T05_36 = 2 if T05_36==0 & T05_33_problem=="Necessidade de escola do I e II ciclo urgente"

label variable T05_03 `"Problem: Too many students per class"'
label variable T05_04 `"Problem: Not enough classrooms"'
label variable T05_05 `"Problem: Not enough teachers"'
label variable T05_06 `"Problem: Low quality of the classrooms"'
label variable T05_07 `"Problem: Low quality or missing bathrooms"'
label variable T05_08 `"Problem: Low quality or missing other facilities"'
label variable T05_09 `"Problem: Weak health of students"'
label variable T05_10 `"Problem: Students not complying with the schedule"'
label variable T05_11 `"Problem: Student absence"'
label variable T05_12 `"Problem: High drop out rate of students"'
label variable T05_13 `"Problem: Misconduct and physical conflicts between students"'
label variable T05_14 `"Problem: Student empathy towards teachers"'
label variable T05_15 `"Problem: Students disrespect towards teachers"'
label variable T05_16 `"Problem: Lack of parent involvement"'
label variable T05_17 `"Problem: Unpreparedness of school team"'
label variable T05_18 `"Problem: Teachers not complying with the schedule"'
label variable T05_19 `"Problem: Teacher absence"'
label variable T05_20 `"Problem: Low teacher salary"'
label variable T05_21 `"Problem: Low teacher performance"'
label variable T05_22 `"Problem: Low teacher motivation"'
label variable T05_23 `"Problem: Too small school budget"'
label variable T05_24 `"Problem: Teachers give private classes"'
label variable T05_25 `"Problem: High cost of school material"'
label variable T05_26 `"Problem: Automatic transition to higher class in the end of the year"'
label variable T05_27 `"Problem: Lack of extracurricular activities"'
label variable T05_28 `"Problem: Lack of furniture"'
label variable T05_29 `"Problem: Lack of school material"'
label variable T05_30 `"Problem: Lack of security"'
label variable T05_31 `"Problem: Lack of electricity and light"'
label variable T05_32 `"Problem: Lack of water"'
label variable T05_33 `"Problem: Lack of school meal"'
label variable T05_34 `"Problem: School location (distance / no transport)"'
label variable T05_35 `"Problem: Lack of cleaning staff"'
label variable T05_36 `"Problem: Lack of grades and night classes"'

drop T05_33_old T05_33_problem

lab val T05_03 T05_04 T05_05 T05_06 T05_07 T05_08 T05_09 T05_10 T05_11 		///
		T05_12 T05_13 T05_14 T05_15 T05_16 T05_17 T05_18 T05_19 T05_20 		///
		T05_21 T05_22 T05_23 T05_24 T05_25 T05_26 T05_27 T05_28 T05_29 		///
		T05_30 T05_31 T05_32 T05_33 T05_34 T05_35 T05_36 problem

********************************************************************************

********************************************************************************

* Section 6 (P5 / T6 / D8)

rename T06_01__18 T06_01__18_old

gen T06_01__18 = 0 if T06_01__18_old!=.

order T06_01__18, after(T06_01__17)

replace T06_01__2 = T06_01__18_old if T06_01_other=="Ampliar a escola." & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="colocar portas, janelas e fechaduras" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="O acabamento das salas anexas" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="vidro e janelas" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Climatização" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Climatizar todas salas" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="sistema de ventilação" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="ventilar as salas , Rever os problemas das salas inundadas" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Melhoria da estrutura da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Pintar a escola toda" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="pintura da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="reabilitação da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="reabilitação da escola e seus anexos, pintura" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="reabilitação da escola no geral" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="reabilitação e apetrechamento da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="reabilitação e apetrechamento total da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Reparação da escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Reparar a escola" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Restruturação da estrutura" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="Reabilitação de salas e pintar as outras" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="pintura e climatização das instituição" & T06_01__2 == 0
replace T06_01__2 = T06_01__18_old if T06_01_other=="pintura, janelas e portas" & T06_01__2 == 0
replace T06_01__3 = T06_01__18_old if T06_01_other=="construir uma casa de banho e um tanque de agua." & T06_01__3 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="A vedação do quintal da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Abrir lavra para escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="abriria uma cantina escolar" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="apetrechamento da escola e alojamento dos professodes" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="avedação do quintal" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="campo multiuso" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Cantina escolar" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="cantina escolar" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Cantina para oa alunos" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Casa para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="colocar Jardim" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Comprar Mobiliário Para a Residência Dos Professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Condições sociais dos alunos e residências para professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construção da sala dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construcao de  um muro/quintal.  contrucao de um ginasio." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de casa para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de casas dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de residência para professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construção de sala de professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construcao de um campo multiuso." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de um Gabinete para o director da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de uma ala de professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construção de uma biblioteca" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construção de uma cantina para os alunos" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de uma nova sala de professores e do director" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de uma sala de Informática" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de uma sala para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construção de uma sala para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construção do quintal" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construia sala de professores." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="construir uma sala de professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="contrucao de uma sala de professores,de musica." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Criação de espaços de lazer para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Criar espaço verde para diversão dos alunos..." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="criar um centro de Lazer" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Criar uma sala de Informática" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="ginasio" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Jango para os alunos da iniciação" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Jardim," & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Laboratório de Pesquisa." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Manutenção da via que da acesso a escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Melhorar a residência dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Melhorar a via de acesso" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Melhoria do gabinete da directora. aumentar a seguranca." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Na construção de campo para educação física e construção do quintal" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Na construção do quintal da escola e campo de educação física" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Na construção do Quintal escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Na vedação da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Organizar o pátio devido o excesso de poeira que tem" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Parque de estacionamento,  Refeitório." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Pátio da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Pavimentação do pátio da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Plantações de árvores e pavimento do pátio, papelaria, cantina escolar,etc." & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="residência do professor, refeitório para professor" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Residência dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Residência dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Residência para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Residência para Professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="residência para professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="residência para professores e vedação da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Residências dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Ter um refeitório para apoiar os alunos e professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Término da residência dos professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="uma cantina" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="uma cantina para a escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="uma casa para estadias para os professores" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Vedação" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="vedação" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="vedação da escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="vedação dos muros" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="vedação dos muros" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Criação de uma secretaria devidamente organizada" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Portão da Escola" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Sala de Informática" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Salas de informática" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Construir um posto médico e farmácia; canalização de água" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Uma sala específica para a iniciação; Compra de meios de ensino" & T06_01__4 == 0
replace T06_01__4 = T06_01__18_old if T06_01_other=="Agua.Residência" & T06_01__4 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="a questão da água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="abastecimento de água para o tanque" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="água para o consumo" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Água potável" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Agua,Luz" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Colova agua na escola e energia electrica." & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Comprar gerador" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Comprava se um girador , visto q n temos energia" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Construção de Tanques de água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="construcao de um tanque de agua para os alunos e professores." & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Construir um tanque agua para a escol." & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="electricidade" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Elitricidade" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Energia" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Energia e luz" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Fazer um tanque de água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Gerador da Escola" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Resolver o problema da energia e agua" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Tanque da água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Tanque de Água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="ter água tratada" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Ter um tanque de água e pintura" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="ter uma fonte de água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Ter uma fonte de água e um gerador" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="um tanque de água, material de educação física" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="contratar empregada de limpeza. Electricidade e Luz" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Construir um posto médico e farmácia; canalização de água" & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="construir uma casa de banho e um tanque de agua." & T06_01__5 == 0
replace T06_01__5 = T06_01__18_old if T06_01_other=="Agua.Residência" & T06_01__5 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="Carteira." & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="Compra de Carteira" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="materiais de uso corrente (papeis, tinteiros, giz etc.)" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="mobilia par escola" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="mobília," & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="Mobiliário" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="Mobiliários" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="construção de um hospital" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="construia um centro médico so para s escola" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="Um posto de saúde pra escola" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="ter um hospital e cantina" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="carteiras, computadores e materiais administrativos" & T06_01__6 == 0
replace T06_01__6 = T06_01__18_old if T06_01_other=="portas e batas para os alunos" & T06_01__6 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="comprar giz" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Compras de materiais de desporto" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="material escolar" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Material para pratica desportiva" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Melhorar a qualidade de Giz" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Aquisição de computadores" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Compra de material informático" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Comprar equipamento informático para auxiliar a actividade administrativas" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="comprar um computador para a escola" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Criar condições pra se ter uma gráfica na escola." & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Televisão" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Uma maquina copiadora" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Compra de medicamentos para os alunos" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="Uma sala específica para a iniciação; Compra de meios de ensino" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="carteiras, computadores e materiais administrativos" & T06_01__7 == 0
replace T06_01__7 = T06_01__18_old if T06_01_other=="portas e batas para os alunos" & T06_01__7 == 0
replace T06_01__9 = T06_01__18_old if T06_01_other=="Alimentação, vestuário" & T06_01__9 == 0
replace T06_01__9 = T06_01__18_old if T06_01_other=="Merenda escolar" & T06_01__9 == 0
replace T06_01__9 = T06_01__18_old if T06_01_other=="Merenda escolar" & T06_01__9 == 0
replace T06_01__9 = T06_01__18_old if T06_01_other=="Merenda escolar da escola" & T06_01__9 == 0
replace T06_01__9 = T06_01__18_old if T06_01_other=="Merendas escolares" & T06_01__9 == 0
replace T06_01__12 = T06_01__18_old if T06_01_other=="Dar como imprestimos eJuros aos Funcionários da escula" & T06_01__12 == 0
replace T06_01__12 = T06_01__18_old if T06_01_other=="pagamentos aos colaboradores" & T06_01__12 == 0
replace T06_01__12 = T06_01__18_old if T06_01_other=="Pagar os colaboradores" & T06_01__12 == 0
replace T06_01__14 = T06_01__18_old if T06_01_other=="contratacao de mais segurancas." & T06_01__14 == 0
replace T06_01__14 = T06_01__18_old if T06_01_other=="Melhorar o salário dos segurança" & T06_01__14 == 0
replace T06_01__14 = T06_01__18_old if T06_01_other=="segurança" & T06_01__14 == 0
replace T06_01__14 = T06_01__18_old if T06_01_other=="seguranca na escola." & T06_01__14 == 0
replace T06_01__14 = T06_01__18_old if T06_01_other=="Recrutamento do pessoal de egiene, segurança" & T06_01__14 == 0
replace T06_01__15 = T06_01__18_old if T06_01_other=="Recrutamento do pessoal de egiene, segurança" & T06_01__15 == 0
replace T06_01__15 = T06_01__18_old if T06_01_other=="contratar empregada de limpeza. Electricidade e Luz" & T06_01__15 == 0
replace T06_01__16 = T06_01__18_old if T06_01_other=="aumento de novas classes" & T06_01__16 == 0
replace T06_01__17 = T06_01__18_old if T06_01_other=="transporte" & T06_01__17 == 0
replace T06_01__17 = T06_01__18_old if T06_01_other=="Transporte pr alunos e professores" & T06_01__17 == 0
replace T06_01__18 = T06_01__18_old if T06_01_other=="Criar Um Fundo da Escola" & T06_01__18 == 0
replace T06_01__18 = T06_01__18_old if T06_01_other=="Criariam um fundo" & T06_01__18 == 0
replace T06_01__18 = T06_01__18_old if T06_01_other=="estimular o pessoal com bom desempenho e criar fundo de maneio para possíveis ocorrências" & T06_01__18 == 0
replace T06_01__18 = T06_01__18_old if T06_01_other=="Ficar no fundo de maneio a escola" & T06_01__18 == 0
replace T06_01__18 = T06_01__18_old if T06_01_other=="Fundo da escola" & T06_01__18 == 0

label variable T06_01__1 `"Budget priorities: Build new school"'
label variable T06_01__2 `"Budget priorities: Build/improve classrooms"'
label variable T06_01__3 `"Budget priorities: Build/improve bathrooms"'
label variable T06_01__4 `"Budget priorities: Build/improve other facilities"'
label variable T06_01__5 `"Budget priorities: Build/improve water/electricity"'
label variable T06_01__6 `"Budget priorities: Buy/maintain furniture"'
label variable T06_01__7 `"Budget priorities: Buy school material"'
label variable T06_01__8 `"Budget priorities: Increase the number class periods"'
label variable T06_01__9 `"Budget priorities: Provide school meals"'
label variable T06_01__10 `"Budget priorities: Organize extracuricular activities"'
label variable T06_01__11 `"Budget priorities: Contract more teachers"'
label variable T06_01__12 `"Budget priorities: Increase teacher salary"'
label variable T06_01__13 `"Budget priorities: Invest in teacher education"'
label variable T06_01__14 `"Budget priorities: Contract security staff"'
label variable T06_01__15 `"Budget priorities: Contract cleaning staff"'
label variable T06_01__16 `"Budget priorities: Increase the number of classes"'
label variable T06_01__17 `"Budget priorities: Arrange transport"'
label variable T06_01__18 `"Budget priorities: Save the money"'

drop T06_01__18_old T06_01__999 T06_01_other

********************************************************************************

********************************************************************************

* Section 7 (P6 / T7 / D9)


// labelssss

#delimit ;
;
label define agree
1 `"Agree a lot"'
2 `"Agree"'
3 `"Do not agree nor disagree"'
4 `"Disagree"'
5 `"Disagree a lot"'
;
label define good
1 `"Very good"'
2 `"Good"'
3 `"Reasonable"'
4 `"Weak"'
5 `"Very weak"'
;
label define satisfied
1 `"Very satisfied"'
2 `"Satisfied"'
3 `"Dissatisfied"'
4 `"Very dissatisfied"'
;
#delimit cr

foreach var in T07_01 T07_02 T07_03 T07_04 T07_05 T07_06 T07_07 T07_08 		///
				T07_09 T07_10 T07_11 T07_12 T07_13 {
	replace `var' = . if `var'==999
}

lab val T07_01 T07_02 T07_03 T07_04 T07_05 T07_06 agree
lab val T07_07 T07_08 T07_09 T07_10 T07_11 good
lab val T07_12 T07_13 satisfied

label variable T07_01 `"Agree or disagree: Teacher motivation is high"'
label variable T07_02 `"Agree or disagree: Teachers take their responsibility very serious"'
label variable T07_03 `"Agree or disagree: Directors take their responsibilities very serious"'
label variable T07_04 `"Agree or disagree: Parent involvement is high"'
label variable T07_05 `"Agree or disagree: Parents always available to help with extra activities"'
label variable T07_06 `"Agree or disagree: School works well for future students"'

label variable T07_07 `"Performance evaluation: director"'
label variable T07_08 `"Performance evaluation: school board"'
label variable T07_09 `"Performance evaluation: teachers"'
label variable T07_10 `"Performance evaluation: school team in general"'
label variable T07_11 `"Performance evaluation: parent committee"'

label variable T07_12 `"Satisfaction with respect to salary"'
label variable T07_13 `"Satisfaction with respect to career"'

********************************************************************************

********************************************************************************

* Section 8 (P7 / T8 / D10)

#delimit ;
;
label define freq2
1 `"Very often"'
2 `"Often"'
3 `"Sometimes"'
4 `"Rare"'
5 `"Does not happen"'
;
#delimit cr


foreach var in  T08_01_01 T08_01_01_value T08_01_02 T08_01_02_value 		///
	T08_01_03 T08_01_01_hours T08_02 T08_03 T08_04 T08_05 T08_06 T08_07{
replace `var' = . if inlist(`var',999,-999999999)
}

lab val T08_01_01 T08_01_02 T08_01_03 T08_07 T08_09 dummy
lab val T08_02 T08_03 T08_04 T08_05 T08_06 freq2

label variable T08_01_01 `"Received money from parent"'
label variable T08_01_01_value `"Value money received from parent"'
label variable T08_01_02 `"Received gift from parent"'
label variable T08_01_02_value `"Value gifts received from parent"'
label variable T08_01_03 `"Received service from parent"'
label variable T08_01_01_hours `"Hours service received from parent"'

label variable T08_02 `"Frequency: Parent asks teacher to give private classes"'
label variable T08_03 `"Frequency: Teacher gives private classes"'
label variable T08_04 `"Frequency: Parents bribe teachers"'
label variable T08_05 `"Frequency: Misappropriation of school funds"'
label variable T08_06 `"Frequency: Directors and teachers get jobs because of personal relations"'

label variable T08_07 `"Made complaint or suggestion"'

label variable T08_08__1 `"Way of complain or suggestion: Talk to school director"'
label variable T08_08__2 `"Way of complain or suggestion: Talk to school board"'
label variable T08_08__3 `"Way of complain or suggestion: Talk to teacher of child"'
label variable T08_08__4 `"Way of complain or suggestion: Talk to other staff of the school"'
label variable T08_08__5 `"Way of complain or suggestion: Left a complaint in a complaint box of a public organization"'
label variable T08_08__6 `"Way of complain or suggestion: Via the comunal/municipal board"'
label variable T08_08__7 `"Way of complain or suggestion: At a forum for community representatives"'
label variable T08_08__8 `"Way of complain or suggestion: Via media (news papers, radio, tv"'
label variable T08_08__9 `"Way of complain or suggestion: Via a forum for NGOs"'
label variable T08_08__10 `"Way of complain or suggestion: Via a forum at the community/church"'

replace T08_08__3 = 1 if T08_08_other=="Através de uma reunião de professores"
replace T08_08__3 = 1 if T08_08_other=="levou o caso nos pais em função da desistência drástica dos alunos"
replace T08_08__4 = 1 if T08_08_other=="Comissão de Pais e encarregados de educação"
replace T08_08__4 = 1 if T08_08_other=="Diálogo com os encarregados"
replace T08_08__4 = 1 if T08_08_other=="Falou com RH,Sinprof...."
replace T08_08__5 = 1 if T08_08_other=="sugiram a abertura de salas de alfabetização, e o policiamento"
replace T08_08__6 = 1 if T08_08_other=="Com um funcionário da direção provincial da educação"
replace T08_08__6 = 1 if T08_08_other=="Director de Zona"
replace T08_08__6 = 1 if T08_08_other=="falou com o administrador municipalz"
replace T08_08__10 = 1 if T08_08_other=="Falou com a comunidade"

drop T08_08__11 T08_08__999 T08_08_other

drop T08_10__11
gen T08_10__11 = 0 if T08_09==1
order T08_10__11, after(T08_10__10)

label variable T08_09 `"Are there (other) ways to complain or make suggestions?"'
label variable T08_10__1 `"(Other) way of complain or suggestion: Talk to school director"'
label variable T08_10__2 `"(Other) way of complain or suggestion: Talk to school board"'
label variable T08_10__3 `"(Other) way of complain or suggestion: Talk to teacher of child"'
label variable T08_10__4 `"(Other) way of complain or suggestion: Talk to other staff of the school"'
label variable T08_10__5 `"(Other) way of complain or suggestion: Left a complaint in a complaint box of a public organization"'
label variable T08_10__6 `"(Other) way of complain or suggestion: Via the comunal/municipal board"'
label variable T08_10__7 `"(Other) way of complain or suggestion: At a forum for community representatives"'
label variable T08_10__8 `"(Other) way of complain or suggestion: Via media (news papers, radio, tv"'
label variable T08_10__9 `"(Other) way of complain or suggestion: Via a forum for NGOs"'
label variable T08_10__10 `"(Other) way of complain or suggestion: Via a forum at the community/church"'
label variable T08_10__11 `"(Other) way of complain or suggestion: Teacher trade union"'

lab val T08_08__1 T08_08__2 T08_08__3 T08_08__4 T08_08__5 T08_08__6 		///
		T08_08__7 T08_08__8 T08_08__9 T08_08__10 T08_10__1 T08_10__2 		///
		T08_10__3 T08_10__4 T08_10__5 T08_10__6 T08_10__7 T08_10__8 		///
		T08_10__9 T08_10__10 T08_10__11 dummy

replace T08_10__3 = 1 if T08_10_other=="Assembleias de professores"
replace T08_10__4 = 1 if T08_10_other=="Coordenador de Pais"
replace T08_10__5 = 1 if T08_10_other=="fazendo uma escrita"
replace T08_10__5 = 1 if T08_10_other=="Por Escrita"
replace T08_10__5 = 1 if T08_10_other=="Por intermédio fa caixa de diálogo existente na escola"
replace T08_10__6 = 1 if T08_10_other=="Audiência com o Administrador"
replace T08_10__6 = 1 if T08_10_other=="conversar com ministro ou com presidente"
replace T08_10__6 = 1 if T08_10_other=="escrever para os directores de reparticao."
replace T08_10__6 = 1 if T08_10_other=="Existem varias como falar na repartição, Direção provincial ou radio e tv mas sem ser conotado"
replace T08_10__6 = 1 if T08_10_other=="Falar Com a ministra da Educação"
replace T08_10__6 = 1 if T08_10_other=="falar com a repartição da Educação"
replace T08_10__6 = 1 if T08_10_other=="fazer uma carta para as instâncias superiores"
replace T08_10__6 = 1 if T08_10_other=="Através dos órgãos da justiça"
replace T08_10__6 = 1 if T08_10_other=="Falar com a polícia"
replace T08_10__6 = 1 if T08_10_other=="Tribunal"
replace T08_10__6 = 1 if T08_10_other=="Falar com o sindicato dos professores"
replace T08_10__10 = 1 if T08_10_other=="trabalhar com a comunidade, estar mas presente aos encarregados e sugerir ações viáveis de aprendizagem tanto ao nível comunal como local"
replace T08_10__11 = 1 if T08_10_other=="Sindicato de professor"
replace T08_10__11 = 1 if T08_10_other=="Sinprof"
replace T08_10__11 = 1 if T08_10_other=="Sinprof e RH...."

drop T08_10__999 T08_10_other

********************************************************************************

********************************************************************************

* Section 9 (P8 / T9 / D11)

foreach var in  T09_01 T09_02 T09_03 T09_04 T09_05{
replace `var' = . if inlist(`var',999,-999999999)
}

// labels

#delimit ;
;
label define T09_04
0 `"Muito alto"'
1 `"Muito baixo"'
;
label define T09_05
0 `"No, you have to be carefull"'
1 `"Yes, others are trustworthy"'
;
#delimit cr

lab val T09_01 T09_02 T09_03 agree

label variable T09_01 `"Agree or disagree: Parents do not understand the benefits of education"'
label variable T09_02 `"Agree or disagree: Education gives an advantage to my children"'
label variable T09_03 `"Agree or disagree: Teachers get a fair salary"'
label values T09_04 T09_04
label variable T09_04 `"Disagree with fair salary statement because teacher salary is too low"'
label variable T09_05 `"Others are trustworthy"'
recode T09_05 (1=0) (0=1)
label values T09_05 T09_05

********************************************************************************

********************************************************************************

* Section 10 (P9 / T10 / D12)

label values T10_01 dummy
label variable T10_01 `"Member of club, social organisation or church"'

label variable T10_02 `"Number of social groups"'


save "$Endline_dtRaw/_intermediate files/teachers.dta", replace


********************************************************************************

* add roster T10

use "$Endline_dtRaw/teachers/Version 8/T10_roster.dta", clear

append using "$Endline_dtRaw/teachers/Version 10/T10_roster.dta"

label drop _all

********************************************************************************

drop if inlist(interview__key,"42-09-63-48","24-67-12-00","62-92-61-38",	///
	"50-66-63-03","55-62-70-90","73-08-87-02")

********************************************************************************

drop interview__id
rename interview__key 	ss_key
rename T10_roster__id roster_id_T10

/// labels

#delimit ;
;
label define dummy
0	"No"
1 	"Yes"
;
label define T10_04
1 `"Association for farmers/fishermen"'
2 `"Association for small business/traders"'
3 `"Association related to a profession (e.g. doctors, teachers)"'
4 `"Chamber of Commerce"'
5 `"Religious group"'
6 `"Political movement"'
7 `"Cultural association"'
8 `"Sport club"'
9 `"NGO"'
10 `"Credit club (kixikila)"'
11 `"Group based on ethnicity"'
;
#delimit cr

foreach var in  T10_04 T10_05 T10_06{
replace `var' = . if inlist(`var',999,-999999999)
}


label variable T10_03 `"Name of organisation"'
label values T10_04 T10_04
label variable T10_04 `"Type of organisation"'
label variable T10_05 `"Number of local members of organisation"'
label values T10_06 dummy
label variable T10_06 `"Respondent is a leader within the organisation"'

replace T10_04 = . if T10_04==12

replace T10_04 = 1 if T10_03=="Cooperativa Agrícola"
replace T10_04 = 5 if T10_03=="Igreja"
replace T10_04 = 3 if T10_03=="Sindicato dos professores"

drop T10_04_other

foreach var in T10_03 T10_04 T10_05 T10_06{
rename `var' `var'_
}
reshape wide T10_03_ T10_04_ T10_05_ T10_06_, i(ss_key) j(roster_id_T10)

forval x = 1/4{
lab var T10_03_`x' "(`x') Name of organisation"
lab var T10_04_`x' "(`x') Type of organisation"
lab var T10_05_`x' "(`x') Number of local members of organisation"
lab var T10_06_`x' "(`x') Respondent is a leader within the organisation"
}

save "$Endline_dtRaw/_intermediate files/teachers_T10.dta", replace

********************************************************************************

use "$Endline_dtRaw/_intermediate files/teachers.dta", clear

merge 1:1 ss_key using "$Endline_dtRaw/_intermediate files/teachers_T10.dta"

order 	T10_03_1 T10_04_1 T10_05_1 T10_06_1 T10_03_2 T10_04_2 T10_05_2 		///
		T10_06_2 T10_03_3 T10_04_3 T10_05_3 T10_06_3 T10_03_4 T10_04_4 		///
		T10_05_4 T10_06_4, after(T10_02)

drop _merge

********************************************************************************

********************************************************************************

* Section 11 (P10 / T11 / D13)

foreach var in  T11_01 T11_02 T11_03 T11_04 T11_04_times T11_05 			///
				T11_05_times T11_06{
replace `var' = . if inlist(`var',999,9999,-999999999)
}


#delimit ;
;
label define T11_03
0 `"Did not contribute"'
1 `"Contributed with time"'
2 `"Contributed with money"'
3 `"Contributed with time and money"'
;
#delimit cr

lab val T11_01 T11_02 agree
lab val T11_04 T11_05 T11_06 dummy

label variable T11_01 `"Agree or disagree: Other people are available to help in necessary"'
label variable T11_02 `"Agree or disagree: Here there are people that try to take advantage of others"'

label values T11_03 T11_03
label variable T11_03 `"Public good contribution with time or money"'

label variable T11_04 `"Participated in community work"'
label variable T11_04_times `"Number of times participated in community work"'
label variable T11_05 `"Gathering to demand improvements from leaders"'
label variable T11_05_times `"Number of times gathering to demand improvements from leaders"'
label variable T11_06 `"Voted in 2017"'

label variable T11_07__1 `"Sources of information about what the government does:Family friends neighbors"'
label variable T11_07__2 `"Sources of information about what the government does:Local newspaper"'
label variable T11_07__3 `"Sources of information about what the government does:Billboard advertisement"'
label variable T11_07__4 `"Sources of information about what the government does:National newspaper"'
label variable T11_07__5 `"Sources of information about what the government does:Radio"'
label variable T11_07__6 `"Sources of information about what the government does:TV"'
label variable T11_07__7 `"Sources of information about what the government does:Group or association"'
label variable T11_07__8 `"Sources of information about what the government does:Business partners and colleague"'
label variable T11_07__9 `"Sources of information about what the government does:Community leaders"'
label variable T11_07__10 `"Sources of information about what the government does:Government representative"'
label variable T11_07__11 `"Sources of information about what the government does:NGO"'
label variable T11_07__12 `"Sources of information about what the government does:Internet (social media)"'

drop T11_07__13 T11_07__999 T11_07_other

lab val T11_07__1 T11_07__2 T11_07__3 T11_07__4 T11_07__5 T11_07__6 		///
		T11_07__7 T11_07__8 T11_07__9 T11_07__10 T11_07__11 T11_07__12 dummy

********************************************************************************

********************************************************************************

* Section 12 (P11 / T12 / D14)

foreach var in  T12_02_01 T12_03_01 T12_02_02 T12_03_02 T12_02_03 			///
T12_03_03 T12_02_04 T12_03_04 T12_02_05 T12_03_05 T12_02_06 T12_03_06 		///
T12_02_07 T12_03_07 T12_02_08 T12_03_08 T12_02_09 T12_03_09 T12_02_10 		///
T12_03_10 T12_02_11 T12_03_11 T12_02_12 T12_03_12 T12_02_13 T12_03_13 		///
T12_02_14 T12_03_14 T12_02_15 T12_03_15 T12_02_16_measure T12_02_16_01 		///
T12_02_16_02 T12_03_16 T12_02_17 T12_03_17 T12_02_18 T12_03_18 T12_02_19 	///
T12_03_19 T12_02_20 T12_03_20{
replace `var' = . if inlist(`var',999,-999999999)
}

#delimit ;
;
label define T12_02_16_measure
1 `"Hectares"'
2 `"Squared meters"'
;
#delimit cr

lab val T12_01__1 T12_01__2 T12_01__3 T12_01__4 T12_01__5 T12_01__6 		///
		T12_01__7 T12_01__8 T12_01__9 T12_01__10 T12_01__11 T12_01__12 		///
		T12_01__13 T12_01__14 T12_01__15 T12_01__16 T12_01__17 T12_01__18 	///
		T12_01__19 T12_01__20 dummy

label variable T12_01__1 `"Possession in household: Books"'
label variable T12_01__2 `"Possession in household: Radios"'
label variable T12_01__3 `"Possession in household: Televisions"'
label variable T12_01__4 `"Possession in household: Computers"'
label variable T12_01__5 `"Possession in household: Yablets"'
label variable T12_01__6 `"Possession in household: Digital cameras"'
label variable T12_01__7 `"Possession in household: Smartphones"'
label variable T12_01__8 `"Possession in household: Normal phones"'
label variable T12_01__9 `"Possession in household: Bicycles"'
label variable T12_01__10 `"Possession in household: Motor bikes"'
label variable T12_01__11 `"Possession in household: Cars"'
label variable T12_01__12 `"Possession in household: Ovens/microwaves"'
label variable T12_01__13 `"Possession in household: Washing machines"'
label variable T12_01__14 `"Possession in household: Fridges"'
label variable T12_01__15 `"Possession in household: Stoves"'
label variable T12_01__16 `"Possession in household: Land"'
label variable T12_01__17 `"Possession in household: Houses"'
label variable T12_01__18 `"Possession in household: Animals"'
label variable T12_01__19 `"Possession in household: Big agricultural equipment"'
label variable T12_01__20 `"Possession in household: Small agricultural equipment"'

label variable T12_02_01 `"Number of books"'
label variable T12_03_01 `"Value of books"'
label variable T12_02_02 `"Number of radios"'
label variable T12_03_02 `"Value of radios"'
label variable T12_02_03 `"Number of televisions"'
label variable T12_03_03 `"Value of televisions"'
label variable T12_02_04 `"Number of computers"'
label variable T12_03_04 `"Value of computers"'
label variable T12_02_05 `"Number of tablets"'
label variable T12_03_05 `"Value of tablets"'
label variable T12_02_06 `"Number of digital cameras"'
label variable T12_03_06 `"Value of digital cameras"'
label variable T12_02_07 `"Number of smartphones"'
label variable T12_03_07 `"Value of smartphones"'
label variable T12_02_08 `"Number of normal phones"'
label variable T12_03_08 `"Value of normal phones"'
label variable T12_02_09 `"Number of bicycles"'
label variable T12_03_09 `"Value of bicycles"'
label variable T12_02_10 `"Number of motor bikes"'
label variable T12_03_10 `"Value of motor bikes"'
label variable T12_02_11 `"Number of cars"'
label variable T12_03_11 `"Value of cars"'
label variable T12_02_12 `"Number of ovens/microwaves"'
label variable T12_03_12 `"Value of ovens/microwaves"'
label variable T12_02_13 `"Number of washing machines"'
label variable T12_03_13 `"Value of washing machines"'
label variable T12_02_14 `"Number of fridges"'
label variable T12_03_14 `"Value of fridges"'
label variable T12_02_15 `"Number of stoves"'
label variable T12_03_15 `"Value of stoves"'

label values T12_02_16_measure T12_02_16_measure
label variable T12_02_16_measure `"Type of measure: hectares or squared meters"'

label variable T12_02_16_01 `"Size of land"'
label variable T12_02_16_02 `"Size of land"'
label variable T12_03_16 `"Value of land"'
label variable T12_02_17 `"Number of houses"'
label variable T12_03_17 `"Value of houses"'
label variable T12_02_18 `"Number of animals"'
label variable T12_03_18 `"Value of animals"'
label variable T12_02_19 `"Number of big agricultural equipment"'
label variable T12_03_19 `"Value of big agricultural equipment"'
label variable T12_02_20 `"Number of small agricultural equipment"'
label variable T12_03_20 `"Value of small agricultural equipment"'

drop T12_01__999

********************************************************************************

********************************************************************************

* Section 13 (T13 / D15)

label values T13_01 dummy
label variable T13_01 `"Teacher of one of the selected students"'
label variable T13_02 `"Number of selected students"'

replace T13_01 = . if T13_01==-999999999

save "$Endline_dtRaw/_intermediate files/teachers.dta", replace


********************************************************************************

* add roster T13

use "$Endline_dtRaw/teachers/Version 8/T13_roster.dta", clear

append using "$Endline_dtRaw/teachers/Version 10/T13_roster.dta"

label drop _all

********************************************************************************

drop if inlist(interview__key,"42-09-63-48","24-67-12-00","62-92-61-38",	///
	"50-66-63-03","55-62-70-90","73-08-87-02")

********************************************************************************

drop interview__id
rename interview__key 	ss_key
rename T13_roster__id roster_id_T13

/// labels

#delimit ;
;
label define agree
1 `"Agree a lot"'
2 `"Agree"'
3 `"Do not agree nor disagree"'
4 `"Disagree"'
5 `"Disagree a lot"'
;
label define T13_13
0 `"Not involved"'
1 `"Very little involved"'
2 `"Little involved"'
3 `"Involved"'
4 `"Very much involved"'
;
label define dummy
0	"No"
1 	"Yes"
;
#delimit cr

foreach var in  T13_03 T13_05 T13_06 T13_08 T13_09 T13_10 T13_11 T13_12 T13_13{
replace `var' = . if inlist(`var',999,-999999999,9999)
}

replace T13_12 = . if T13_12==6
replace T13_13 = . if T13_13==5

label variable T13_03 `"Student selected ID"'
label variable T13_04 `"Student name"'
label values T13_05 dummy
label variable T13_05 `"Student repeating situation"'
label values T13_06 dummy
label variable T13_06 `"Students last year teacher"'
label variable T13_07 `"Last year students teacher"'
label variable T13_08 `"Last year teacher ID"'
label variable T13_09 `"Sent information in the last four weeks to parents"'
label variable T13_10 `"How many times parents were invited for a meeting with teacher"'
label variable T13_11 `"How many times parents came to school to talk to teacher"'
label values T13_12 agree
label variable T13_12 `"Parents and school objective"'
label values T13_13 T13_13
label variable T13_13 `"Parents involvement in students school life"'

foreach var in 	T13_03 T13_04 T13_05 T13_06 T13_07 T13_08 T13_09 T13_10 		///
				T13_11 T13_12 T13_13{
rename `var' `var'_
}

reshape wide 	T13_03_ T13_04_ T13_05_ T13_06_ T13_07_ T13_08_ T13_09_ 	///
				T13_10_ T13_11_ T13_12_ T13_13_, i(ss_key) j(roster_id_T13)

forval x = 1/20{
lab var T13_03_`x' "(`x') Student selected ID"
lab var T13_04_`x' "(`x') Student name"
lab var T13_05_`x' "(`x') Student repeating situation"
lab var T13_06_`x' "(`x') Students last year teacher"
lab var T13_07_`x' "(`x') Last year students teacher"
lab var T13_08_`x' "(`x') Last year teacher ID"
lab var T13_09_`x' "(`x') Sent information in the last four weeks to parents"
lab var T13_10_`x' "(`x') How many times parents were invited for a meeting with teacher"
lab var T13_11_`x' "(`x') How many times parents came to school to talk to teacher"
lab var T13_12_`x' "(`x') Parents and school objective"
lab var T13_13_`x' "(`x') Parents involvement in students school life"
}

save "$Endline_dtRaw/_intermediate files/teachers_T13.dta", replace


********************************************************************************

use "$Endline_dtRaw/_intermediate files/teachers.dta", clear

merge 1:1 ss_key using "$Endline_dtRaw/_intermediate files/teachers_T13.dta"

drop _merge

********************************************************************************

********************************************************************************

save "$Endline_dtRaw/_intermediate files/teachers.dta", replace
